Jump to content

how to make a button that pauses the script


stigma
 Share

Recommended Posts

Hey all,

This is probably a very simple question for you veterans, but please don't be too upset :) I'm trying to learn.

here is the worlds simplest script for example:

Send("{h}")
Sleep(4000)
Send("{e}")
Sleep(4000)
Send("{l}")
Sleep(4000)
Send("{l}")
Sleep(4000)
Send("{o}")
Sleep(4000)

I want to make it so that I can push a button (say the pause/break button for example), and halt the script until the button is hit again, and lets the script resume.

How can I do that? Can anyone edit the example above to include that function?

-

Link to comment
Share on other sites

  • Moderators

I can do better than an example, I can show you in the "help file" :) (which even has an example :D )

http://www.autoitscript.com/autoit3/docs/f...s/HotKeySet.htm

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

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...