Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

New to AutoIT

$
0
0
Hey everyone i am new to auto it. I have recently downloaded the program and am trying to figure out how to get a program to "restart" its function when the pause/unpause button is used. I do not wish to have this loop, unless end loop time is long so it can be repaused without having to worry about it performing the action twice in a row rapidly. here is a script i found and edited to perform the function i need.



[ autoit ]         
Opt('MouseCoordMode', 0) Opt('PixelCoordMode', 0) HotKeySet('{END}', 'Quit') HotKeySet('{Home}', 'Pause') Global $Paused ;starts paused. press home to start. Pause() Send ("i") MouseClick("right",1019,604,1) Sleep ("100") MouseClick("right",1055,593,1) Sleep ("100") MouseClick("right",1091,586,1) Sleep ("100") MouseClick("right",1021,564,1) Sleep ("900") Send ("i") Func Pause() $Paused = Not $Paused While $Paused Sleep(100) ToolTip('Paused...', 0, 0) WEnd ToolTip("") EndFunc ;==>Pause

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>