Difference between revisions of "Pause"

From Wiki
Jump to: navigation, search
(Example 2)
(Example 1)
Line 4: Line 4:
 
==== Example 1 ====
 
==== Example 1 ====
 
<pre>
 
<pre>
finditem * C_ , #backpackid
+
onhotkey F12
if #findkind = 1
+
 
{
 
{
 
display ok The script is currently paused. press the EasyUO play button to restart.
 
display ok The script is currently paused. press the EasyUO play button to restart.

Revision as of 10:14, 1 September 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

onhotkey F12
{
	display ok The script is currently paused. press the EasyUO play button to restart.
	pause
}

Example 2

sub somesub
   ; If we are debugging, pause script execution here to check current variables.
   if %debug
      pause
   set %something %1
return %something

See also

Main Page Documentation