Jump to content

Recommended Posts

Posted (edited)

.. or you could just right-click on the icon in the System Tray and select "Exit" :whistle:

Edited by trids
  • Developers
Posted

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

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

While 1

sleep(100)

Wend

Func Stop()

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

exit

EndFunc

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

Posted

HotKey support is in the unstable version folder. Currently trying to get all the bugs out. Make sure you don't loop yourself while using it.

AutoIt3, the MACGYVER Pocket Knife for computers.

  • 3 weeks later...
Posted

To use this script, would you replace PAUSE with another control so that is used to activate it? For I'm trying to make an on/off fishing/curing script for FFXI. By the way, the curing script is 1337 :whistle:

Posted (edited)

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
sleep(1000)
While 1
; place whatever you want to do here.
send("1")
sleep(1000)
Wend

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

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

AutoIt3, the MACGYVER Pocket Knife for computers.

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