|
Post by Duke Newrise on Feb 14, 2005 0:54:40 GMT -5
A floppy pause is harder to use then a numlock pause. GOOD LUCK!
|
|
|
Post by playaplaya on Feb 14, 2005 0:56:33 GMT -5
So this is my outcome, Numlock off start = Nothing, then hit Numlock = bot starts, then when i hit it again.... keeps going still. Any ways to make this an ON/OFF button? Or is it supposed to be and I'm retarded?
Playaplaya
|
|
|
Post by Duke Newrise on Feb 14, 2005 0:57:46 GMT -5
Func Pause() If Not NumCheck() Then $paused = 1 ConOut("Bot Paused" & Chr(10)) EndIf
While $paused If NumCheck() Then $paused = 0 EndIf Sleep(1000) WEnd
EndFunc
This is a numlock pause. Love it.
|
|
|
Post by playaplaya on Feb 14, 2005 0:59:48 GMT -5
lol yes i know, you just told me to look for that and I posted my outcome from that code. I also have this:
ConOut("Initializing..." & Chr(10)) Sleep(1000) Send("{NUMLOCK off}"); Pauses the bot ;StartUpFFact() Global $paused = 1 $Timer50Minutes = TimerStart()
At the top of my scrip before my declarations... Needed?
|
|
|
Post by TinyTerror on Feb 14, 2005 1:00:26 GMT -5
Heh, if you want to pause in your script, just use really long sleep statements. The lock checking functions were not really ment to pause a script internally. I think sending numlock on and off is faked by autoit. Say for example you send numlock on and then type some crap in your num pad, then turn numlock off with send. What this does is processes the input as if numlock were on. Its all in software. The actual state of num-lock doesnt change at all. If you want to pause your script for a long period of time, just tell it to sleep for ten hours or something. Or have it periodically check a condition say every 15 minutes. The problem with having a Pause function in autoterror is that autoterror is not a multithreaded compiler. When you would say Pause in a script, the compiler would sit there and wait for an unpause command. But since you are paused, you never procede beyond the pause function call. There could be an unpause command right after the pause, but the compiler would never see it. Am I making any sense? Adding a pause function that is not driven by user input (like the autoterror lock key checkers) would break the language at a fundimental level. If you want to stop the script for a long time, use sleep. You run a much lower risk of destroying the fabric of reality that way Good night all, and to all a good night. -_-
|
|
|
Post by Duke Newrise on Feb 14, 2005 1:02:41 GMT -5
All you need is that funtionc and Global $paused = 1 at the top. Make sure you call the funtions in a loop to pause it.
|
|
|
Post by Kelpinn on Feb 14, 2005 6:56:07 GMT -5
I might not be enough of an expert to know how Autoterror manages the "pause" that Duke created. All i know is it works great in my scripts and i use it all the time.
|
|