sandor555 0 Posted June 19, 2010 (edited) Hello! how to pause the button6? While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Button6 while 1 Sleep(700) send("1") Sleep(1000) Send("2") Sleep(1000) Send("3") Sleep(1000) Send("4") Sleep(1000) Send("5") Sleep(1000) wend case $button7 EndSwitch WEnd Edited June 19, 2010 by sandor555 Share this post Link to post Share on other sites
PsaltyDS 39 Posted June 19, 2010 (edited) Don't get into loops that don't check GuiGetMsg() anymore, it's a trap. Once you click $button6 above, you're stuck in that loop forever. You can do your GUI in event mode, or add a HotKeySet() to change a flag that exits the loop, or do everything in one loop so GuiGetMsg() still gets checked, etc. Depends on what you feel up to. Edited June 19, 2010 by PsaltyDS Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Share this post Link to post Share on other sites
sandor555 0 Posted June 19, 2010 (edited) Please example (I speak little English). Thanks Edited June 19, 2010 by sandor555 Share this post Link to post Share on other sites
Valik 478 Posted June 19, 2010 I'm not your personal servant. If I find that I'm not the only person you've PMed I will lock this thread and remove you from this forum for awhile. Share this post Link to post Share on other sites
PsaltyDS 39 Posted June 19, 2010 Please example (I speak little English).Experiment with the example script in the help file under HotKeySet(), it specifically shows a 'pause' functionality. Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Share this post Link to post Share on other sites