Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <MsgBoxConstants.au3>
- HotKeySet("{TAB}","Terminate")
- While 1
- Local $color= PixelGetColor(100,100)
- MsgBox($MB_SYSTEMMODAL, "", "The hex color is: " & Hex($color, 6))
- Sleep(1000)
- If ($color=0xFAFAFA) Then
- Send("q")
- EndIf
- If ($color=0xFFFFFF) Then
- Send("w")
- EndIf
- WEnd
- Func Terminate()
- Exit
- EndFunc ;==>Terminate
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement