Difference between revisions of "Pause"
From Wiki
m |
|||
| Line 2: | Line 2: | ||
{{body|pause|The ''pause'' command will stop execution of the current script, but it can be resumed by pressing the "Play" button.}} | {{body|pause|The ''pause'' command will stop execution of the current script, but it can be resumed by pressing the "Play" button.}} | ||
| − | ==== Example ==== | + | ==== Example 1 ==== |
<pre> | <pre> | ||
finditem * C_ , #backpackid | finditem * C_ , #backpackid | ||
| Line 10: | Line 10: | ||
pause | pause | ||
} | } | ||
| + | </pre> | ||
| + | |||
| + | ==== Example 2 ==== | ||
| + | <pre> | ||
| + | sub somesub | ||
| + | if %debug | ||
| + | pause | ||
| + | set %something %1 | ||
| + | return %something | ||
</pre> | </pre> | ||
{{footer}} | {{footer}} | ||
Revision as of 10:52, 3 August 2007
Synopsis
pause
Description
The pause command will stop execution of the current script, but it can be resumed by pressing the "Play" button.
Example 1
finditem * C_ , #backpackid
if #findkind = 1
{
display ok The script is currently paused. press the EasyUO play button to restart.
pause
}
Example 2
sub somesub
if %debug
pause
set %something %1
return %something
See also
| Main Page | Documentation |