Guest User

john xina

a guest
Oct 21st, 2021
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 0.41 KB | None | 0 0
  1. ; game played on 1080p monitor with fullscreen windowed on.
  2.  
  3. $KeyToPress = "w"
  4.  
  5. HotKeySet("l", "GREENLIGHT")
  6. HotKeySet("{ENTER}", "END")
  7.  
  8.  
  9. while (true)
  10.    sleep(10)
  11. WEnd
  12.  
  13.  
  14.  
  15. Func GREENLIGHT()
  16.    while 1
  17.       $light = PixelGetColor(844,169)
  18.       if $light=0x55FF00 Then
  19.          Send ("{"&$KeyToPress&" DOWN}")
  20.  
  21. else
  22.    Send ("{"&$KeyToPress&" UP}")
  23. EndIf
  24. WEnd
  25. EndFunc
  26.  
  27.  
  28.  
  29. Func END()
  30.    Exit
  31. EndFunc
  32.  
Advertisement
Add Comment
Please, Sign In to add comment