findmyip 0 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) Share this post Link to post Share on other sites
whim 1 Posted October 30, 2010 Just like a human, AutoIt does not pay attention to input from outside while sleeping. Share this post Link to post Share on other sites
taietel 34 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 Share this post Link to post Share on other sites
whim 1 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 Share this post Link to post Share on other sites