Code:
; Bot example 2
; set f3 to the function
; start function
HotKeySet("{f3}","start")
; set f4 to the stop function
HotKeySet("{f4}","stop")
; set f5 to the_exit function
HotKeySet("{f5}","_exit")
; declare a global bool variable
; which now is set to False
Global $ON = False
; main loop
While 1
Sleep(30) ; nice to CPU
; start this loop if ON is
; True
While $ON = True
Sleep(30) ; delay
Mouseclick("left")
WEnd
WEnd
;fundtion start
Func start()
; just sets ON to True
$ON = True
EndFunc
; function stop
Func stop()
;just sets ON to False
$ON = False
EndFunc
; function _exit
Func _Exit()
;simply exits the script
Exit
EndFunc; set f4 to the stop function
HotKeySet("{f4}","stop"); set f4 to the stop function
HotKeySet("{f4}","stop"); set f4 to the stop function
HotKeySet("{f4}","stop")
Theres like 10 lines of actuall code there.. man
I don't want to discourage you, but in my personal opinion you should at least put an hour or two into something if you are going to release it.
Maybe add some more functions or something?
+1rep for effort though
Oh and.. compile it. Right click->Compile to .exe on the au3 file.
Might want to obfuscate it too.