Shirotaiku |
|
| Perdonami, ma se io sapessi usare C++ e Java , come dici tu, non andrei a programmare un programma con Autoit che è stato sviluppato da C++/C. Detto questo ecco come si dovrebbe presentare il programma. CODICE HotKeySet("{F4}", "_Start") HotKeySet("{F5}", "_Stop")
While 1 Sleep(1000) ;Loop per le hotkeys WEnd
Func _Start() TrayTip("Clicker", "Running...", 1000, 1) $Click = 100 $x = 2317 $y = 925 $original = PixelGetColor($x, $y) ;Questo ricorda il colore del tuo oggetto giallo
For $a=1 to $Click MouseClick("left", $x, $y, 1, 10) $check = PixelGetColor($x, $y) If $check = $original Then ExitLoop EndIf Next Exit EndFunc ;==>_Start
Func _Stop() TrayTip("Clicker", "Stopped", 1000, 1) Exit EndFunc ;==>_Stop
|
| |