Advertisement
Guest User

Untitled

a guest
Dec 8th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. #include <MsgBoxConstants.au3>
  2.  
  3.  
  4.  
  5. HotKeySet("{TAB}","Terminate")
  6.  
  7. While 1
  8. Local $color= PixelGetColor(100,100)
  9. MsgBox($MB_SYSTEMMODAL, "", "The hex color is: " & Hex($color, 6))
  10. Sleep(1000)
  11. If ($color=0xFAFAFA) Then
  12. Send("q")
  13. EndIf
  14. If ($color=0xFFFFFF) Then
  15. Send("w")
  16. EndIf
  17. WEnd
  18.  
  19.  
  20. Func Terminate()
  21. Exit
  22. EndFunc ;==>Terminate
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement