Guest User

Untitled

a guest
Jul 21st, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. +5:: ; Make the F1 key into a hotkey (the $ symbol facilitates the "P" mode of GetKeyState below).
  2.  
  3.  
  4. getx = 274
  5. gety = 488
  6. color = 0x00FF00
  7. Send, 1
  8.  
  9. Loop ; Since no number is specified with it, this is an infinite loop unless "break" or "return" is encountered inside.
  10. {
  11.  
  12. GetKeyState, state, ctrl
  13. if state = D
  14. break
  15.  
  16. PixelGetColor, color, getx, gety
  17.  
  18. if (color != 0x00FF00)
  19. {
  20. getx += 40
  21.  
  22. Click WheelDown
  23. }
  24.  
  25.  
  26. click down right
  27. click up right
  28. }
  29. return
Add Comment
Please, Sign In to add comment