Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Opt("MouseCoordMode", 0)
- Opt("PixelCoordMode", 0)
- Opt("SendKeyDelay", 0)
- Opt("SendKeyDownDelay", 0)
- HotKeySet("{F2}", "Terminate")
- HotKeySet("{F3}", "DoIt")
- Func Terminate()
- Exit
- EndFunc
- Func DoIt()
- Local $vinitialColor
- Local $vcurrentColor
- AutoItSetOption ( "MouseClickDelay" , 22 )
- $vinitialColor = PixelGetColor(1050, 736)
- While 1
- $vcurrentColor = PixelGetColor(1050, 736 )
- If $vcurrentColor <> $vinitialColor Then
- Sleep(10)
- MouseClick("LEFT")
- ExitLoop
- EndIf
- WEnd
- Sleep(2500)
- $vinitialColor = PixelGetColor(1050, 734)
- While 1
- $vcurrentColor = PixelGetColor(1050, 734 )
- If $vcurrentColor <> $vinitialColor Then
- Sleep(10)
- MouseClick("LEFT")
- ExitLoop
- EndIf
- WEnd
- Sleep(2500)
- $vinitialColor = PixelGetColor(1050, 658)
- While 1
- $vcurrentColor = PixelGetColor(1050, 658 )
- If $vcurrentColor <> $vinitialColor Then
- Sleep(10)
- MouseClick("LEFT")
- ExitLoop
- EndIf
- WEnd
- EndFunc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement