DaLiMan Posted May 4, 2004 Posted May 4, 2004 Hi Guy's I took this from the HELP file, but i cannot make it work somehow. The script does indeed pause, but in no way I can make it resume it's task....HotKeySet("{F11}", "TogglePause") ; pieces of script.... ; Func TogglePause() $Paused = NOT $Paused While $Paused sleep(100) ToolTip('Script is "Paused"',0,0) WEnd ToolTip("") EndFunc Do I miss anything?
ezzetabi Posted May 4, 2004 Posted May 4, 2004 (edited) Did you set the variable as Global? If you didnt (and in the scrap here you didnt) the variable value may be reset everytime you hit F11. Edited May 4, 2004 by ezzetabi
DaLiMan Posted May 4, 2004 Author Posted May 4, 2004 Did you set the variable as Global?If you didnt (and in the scrap here you didnt) the variable value may be reset everytime you hit F11.OK, so how do i set it as global?
ezzetabi Posted May 4, 2004 Posted May 4, 2004 Begin of the script: Global $Paused btw... Read the manual
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now