When m is pressed the mouse should continously click, and when e is pressed it should exit the program so m no longer clicks. What am i doing wrong?
HotKeySet ("e" [,"Exit"])
HotKeySet ("m" [,"Click"])
Func Click()
MouseClick("left")
EndFunc
Func _Exit()
Exit 0
EndFunc
Try this:
HotKeySet("e", "_Exit")
HotKeySet("m", "_Click")
While 1
Sleep(250)
WEnd
Func _Click()
While 1
MouseClick("left")
Sleep(100)
WEnd
EndFunc ;==>_Click
Func _Exit()
Exit 0
EndFunc ;==>_Exit