Jump to content

Help with hotkeyset


 Share

Recommended Posts

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 ;)

Link to comment
Share on other sites

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