findmyip Posted October 30, 2010 Share Posted October 30, 2010 how do i pause script by right click systray icon while script is doing "sleep(5000)" ? (i can exit the script but not pause it) Link to comment Share on other sites More sharing options...
whim Posted October 30, 2010 Share Posted October 30, 2010 Just like a human, AutoIt does not pay attention to input from outside while sleeping. Link to comment Share on other sites More sharing options...
taietel Posted October 30, 2010 Share Posted October 30, 2010 trancexx and monoceres posted a code here (execute in different thread). maybe this can help you. Things you should know first...In the beginning there was only ONE! And zero... Progs: Create PDF(TXT2PDF,IMG2PDF) 3D Bar Graph DeskGadget Menu INI Photo Mosaic 3D Text Link to comment Share on other sites More sharing options...
whim Posted October 30, 2010 Share Posted October 30, 2010 (edited) ...or simply replace Sleep(5000) by Local $dummy = TimerInit() While TimerDiff($dummy) < 5000 Sleep(20) Wend this will give AutoIt the opportunity to check if you paused your script (which, BTW, you can do with a single left click on the tray icon) Edited October 30, 2010 by whim 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