Jump to content
Sign in to follow this  
rocknload

Help with hotkeyset

Recommended Posts

rocknload

hey guys,

i have a problem understanding the hotkeyset and i will be happy if u will help me

let me give u a general example:

$click = 0
while $click = 0
    MouseClick("right")
WEnd

how do i make an hotkey to say stop? or something like that if u understand..

thanks ;)

Share this post


Link to post
Share on other sites
oMBRa

HotKeySet("{F2}", "stop")
Global $Click = False

While 1
    If $Click = True Then
        MouseClick("right")
    EndIf
WEnd

Func stop()
    $Click = Not $Click
EndFunc  ;==>stop

Edited by oMBra

Share this post


Link to post
Share on other sites
rocknload

thx but now when i press f2 it starts..how to stop?

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.