Jump to content
Sign in to follow this  
stigma

how to make a button that pauses the script

Recommended Posts

stigma

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?

-

Share this post


Link to post
Share on other sites
SmOke_N

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.

Share this post


Link to post
Share on other sites
stigma

Oooh, busted! *blush*

Sometimes there is so much info you can't see the forest for the trees :)

Thanks for pointing me to where I needed to go, I appreciate that very much.

-Stigma

Share this post


Link to post
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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.