findmyip Posted October 30, 2010 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)
whim Posted October 30, 2010 Posted October 30, 2010 Just like a human, AutoIt does not pay attention to input from outside while sleeping.
taietel Posted October 30, 2010 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
whim Posted October 30, 2010 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
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