Sign in to follow this  
Followers 0
stigma

how to make a button that pauses the script

3 posts in this topic

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



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


[center]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.[/center]

Share this post


Link to post
Share on other sites

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  
Followers 0