Jump to content

Need help: Adding pause to my script


EasyCo
 Share

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...