EasyCo Posted December 7, 2007 Share Posted December 7, 2007 Hi , im new to using au3 I need help. I would like to add a hotkey to pause my script. Here is general idea of what my script looks like: WinActivate("d1") WinWaitActive("d1") WinMove("d1", "", 1, 1) Func Exit() Sleep(5000) Send("{ESC}") Sleep(400) MouseClick("left",393,255,1,2) Sleep(5000) MouseClick("left",573,453,1,2) Sleep(500) MouseClick("left",530,145,1,2) Sleep(500) Send("{BACKSPACE}") Send("1") Sleep(200) Send("{TAB}") Sleep(200) Send("1") Sleep(500000) EndFunc While 1 Exit() Sleep(200) Wend Thanks for your help! Link to comment Share on other sites More sharing options...
JustinReno Posted December 7, 2007 Share Posted December 7, 2007 Its right in the help file, and use search. Link to comment Share on other sites More sharing options...
weaponx Posted December 7, 2007 Share Posted December 7, 2007 HotKeySet("p", "Pause") HotKeySet("u", "unPause") $paused = false MsgBox(0,"","1") MsgBox(0,"","2") MsgBox(0,"","3") MsgBox(0,"","4") Func Pause() $paused = true While $paused WEnd EndFunc Func unPause() $paused = false EndFunc Link to comment Share on other sites More sharing options...
EasyCo Posted December 7, 2007 Author Share Posted December 7, 2007 Thanks 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