Jump to content

Stopping script when a button is pressed


Recommended Posts

HotKeySet("{ALT}s",  "_exit")
;;;;;; Your Script

Func _exit()
    Exit
EndFunc

That's it

--------------------------------------------------------------------------------------------------------------------------------Scripts : _Encrypt UDF_UniquePCCode UDF MS like calculatorInstall programm *UPDATED* --------------------------------------------------------------------------------------------------------------------------------[quote name='Helge' post='213117' date='Jul 26 2006, 10:22 AM']Have you ever tried surfing the internet with a milk-carton ?This is similar to what you're trying to do.[/quote]

Link to comment
Share on other sites

Anything is easy for anyone everytime.

--------------------------------------------------------------------------------------------------------------------------------Scripts : _Encrypt UDF_UniquePCCode UDF MS like calculatorInstall programm *UPDATED* --------------------------------------------------------------------------------------------------------------------------------[quote name='Helge' post='213117' date='Jul 26 2006, 10:22 AM']Have you ever tried surfing the internet with a milk-carton ?This is similar to what you're trying to do.[/quote]

Link to comment
Share on other sites

I tried that, it didnt loop. Ill post it.

HotKeySet("{ALT}s",  "_exit")

$rnd1 = Random ( 0, 700)
$rnd2 = Random ( 0, 700)
MouseMove($rnd1, $rnd2, 1)
sleep(300)

Func _exit()
    Exit
EndFunc
You forgot to put your script inside a loop.

HotKeySet("{ALT}s",  "_exit")

While 1
    $rnd1 = Random ( 0, 700)
    $rnd2 = Random ( 0, 700)
    MouseMove($rnd1, $rnd2, 1)
    sleep(300)
Wend

Func _exit()
    Exit
EndFunc
Link to comment
Share on other sites

HotKeySet("!s",  "_exit")

While 1
    $rnd1 = Random ( 0, 700)
    $rnd2 = Random ( 0, 700)
    MouseMove($rnd1, $rnd2, 1)
    sleep(300)
Wend

Func _exit()
    Exit
EndFunc

Try that, just had to change the HotKeySet() function to take the proper format.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...