Jump to content

Recommended Posts

  • Developers

in 3.0.85 this would do what you want.... it loops till Pause is pressed.

HotKeySet ( "{PAUSE}" ,"Stop")

While 1



Func Stop()

MsgBox(0,"Stop","Stopped Looping")



SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
Live for the present,
Dream of the future,
Learn from the past.

Link to post
Share on other sites
  • 3 weeks later...

I wrote a few, but I like Larry's code a bit better. The use of adlib is very clean for this. I think it went something like this.

AdlibEnable("pause"); adlib will keep the pause function running

HotKeySet("{pause}","pauseset"); this toggles on and off with Pause key
$Pause = -1; I prefer to start it in Pause mode
While 1
; place whatever you want to do here.

Func pauseset(); this toggles the value of $pause
   $Pause = $Pause * -1

Func pause(); this sleeps when $pause is -1 and doesn't when $pause =1
   While $Pause = -1
Edited by scriptkitty

AutoIt3, the MACGYVER Pocket Knife for computers.

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
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...