sgp's answer is good:
s> if(shift)
s>   quit

If you don't want using the Shift or Ctrl key to stop
the script (maybe you want to continue using the keyboard
normally for editing etc without ending the script),
then you need a different hotkey such as Win+S.
So here is an alternative:

;; place this at the start of the script and after every
;; entry point marked by a @label:
static stop = 0

;; every loop contains:
if(stop)
quit

;; the script ends with:
quit
@stop
static stop=1
quit

Then you can stop the script by running this from a hotkey:
[EMAIL PROTECTED]

Note: the variable "stop" must be static (or global) not local.



Attention: PowerPro's Web site has moved: http://www.ppro.org 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/power-pro/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to