IS aoutoit
Code:
#include <ResFinder.au3>
#include <Colors.au3>
While 1
HotKeySet("{F1}", "Go")
WEnd
Func Go()
While 1
For $i = 0 To 12 Step +1
$move = PixelSearch($res[0], $res[1], $res[2], $res[3], $colors[$i])
If @error <> 1 Then
MouseMove($move[0], $move[1], 5)
MouseDown("left")
MouseUp("left")
; Call("clicked")
; MsgBox(0, " ", "Clicked Was Called")
$clicked = 0
$clicolor = PixelGetColor($res[0] + 33, $res[1] + 51) ; 2244435
For $u = 0 To 100 Step +1
If $clicolor = PixelGetColor($res[0] + 33, $res[1] + 51) Then
Sleep(100)
Else
$clicked = 1
;MsgBox(0, " ", "Clicked = 1")w
ExitLoop
EndIf
Next
; end click
If $clicked = 1 Then
MouseClick("left")
Send( "{f2}" )
Send( "{f2}" )
Send( "{f3}" )
Send( "{f3}" )
EndIf
$clicolor = 0
EndIf
Next
$i = 0
WEnd
EndFunc







