Lokhtar Posted December 15, 2007 Share Posted December 15, 2007 (edited) I have the following script: Do MouseClick("right", 648, 340, 2); Sleep(10000); Until 1=2 This should run forever, right? But after one or two loops, it sometimes just stops. And I have no idea why. I am running Windows Vista. I am doing something in the window while this is going on (and switching windows, etc), but this should not affect the script. EDIT: Just found out that when it stops, and I right click on it on the taskbar, the 'script paused' option is checked. What could cause it to be paused? Edited December 15, 2007 by Lokhtar Link to comment Share on other sites More sharing options...
John117 Posted December 16, 2007 Share Posted December 16, 2007 how funny - wonder why try this -to toggle it on/off press esc HotKeySet("{ESC}", "_Toggle") $Restrict = False ; ============================================================================ ; Main Loop ; ============================================================================ While 1 Sleep(10) If $Restrict = True Then MouseClick("right", 648, 340, 2); Sleep(10000); EndIf WEnd ; ============================================================================ ; Functions ; ============================================================================ Func _Toggle() If $Restrict = True Then Global $Restrict= False Else Global $Restrict = True EndIf EndFunc ;==>_Toggle Link to comment Share on other sites More sharing options...
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