Sign in to follow this  
Followers 0
mmlm

togglepause

4 posts in this topic

for now my scrip work verry good but I want to know if I can add a func on it.

for now I have 2 choice the end for start the script and the home for quit the script... is it possible to set an other key for just take a break lol

only like set someting for he wait the time I need to do someting

I want touch the break on keybord for stop the script and if I touch again the break that restart where the script stop

is that possible ?

Global $Paused
HotKeySet("{END}", "TogglePause")
HotKeySet("{home}", "Terminate")
HotKeySet("{break}", "notPaused")

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Not really sure what you mean, you could just have your break function go:

Func Pause()
   Do
   Sleep(10)
   Until _IsPressed(*break*) = 1
Endfunc

If you do something like that, make sure that it doesnt pause until they have released break (or else it would be very difficult to make this work (as once its run 'break' would already be pressed, since it was hotkeyed)

edit, unless you meant pause the script... Im not sure how you do that though =/

Edited by Rad

Share this post


Link to post
Share on other sites

Ok tanks I try that righ now

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