Hello Wayne w> sorry , I misunderstood, I was using a command list script.
The hotkey command I provided: [EMAIL PROTECTED] means run the script FILE c:\pathto\powerpro\scripts\waittest.powerpro starting at the label @stop .waittest is an abbreviation of runfile.waittest To run a script which is a command list, use: [EMAIL PROTECTED] w> what I found works is to put: w> global stop=1 w> in the hotkey action Yes that will work because your script declared "stop" to be a global variable, therefore you can change its value with a command which is anywhere -- either outside a script (on a bar button or menu item or hotkey etc) or inside ANY script. If you had declared it as a static variable, then you can only change its value by calling a section inside the waittest script, which contains the command: stop = 1 Notice the contradiction in your script: at the start, Stop is declared as a global. In the @Stop section, you call it a static. That can cause errors. Use it consistently as one or the other. Either: declare it initially as a global, in which case your hotkey can have the command: stop = 1 and the @stop section of the script will be unnecessary (which is what you are doing now, I gather) This method is perfectly OK as long as you remember not to use a variable called Stop in other scripts for other purposes. Or: declare it initially as a static, in which case your hotkey will need the command: [EMAIL PROTECTED] and your script will need the @stop section ;;--------- waittest command list script ------ static stop=0 wait.for (5000) if (stop) *message "mesg 1" else *message "mesg 2" endif quit @stop static stop=1 quit ;;------------------------------------------- Note that the command which declares: static stop = 0 must be outside of any repeating loops 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/
