Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- HotKeySet("{F3}", "lclick") ; Sets F3 as a hotkey to start the program
- HotKeySet("{F4}", "lclickslow") ; Sets F3 as a hotkey to start the program
- HotKeySet("{F7}", "RestartScript") ; Sets F5 as a hotkey to restart the progam
- HotKeySet("{F8}", "ExitProg") ; Sets F6 as a hotkey to exit the progam
- While 1
- Sleep(100) ; Waits for function call
- Wend
- Func lclick()
- while 1
- MouseClick("left") ; Left click
- Sleep(20)
- WEnd
- EndFunc
- Func lclickslow()
- while 1
- MouseClick("left") ; Left click
- Sleep(100)
- WEnd
- EndFunc
- Func ExitProg()
- Exit 0 ; Exits the program
- EndFunc
- Func RestartScript()
- If @Compiled = 1 Then
- Run( FileGetShortName(@ScriptFullPath))
- Else
- Run( FileGetShortName(@AutoItExe) & " " & FileGetShortName(@ScriptFullPath))
- EndIf
- Exit
- EndFunc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement