Guest User

Untitled

a guest
Jul 30th, 2018
1,286
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
  2. #Persistent ; Stay open in background
  3. #SingleInstance force
  4. #MaxHotkeysPerInterval 99000000
  5. #HotkeyInterval 99000000
  6. #KeyHistory 0
  7. ListLines Off
  8. SetBatchLines -1
  9. SetKeyDelay, -1, -1
  10. SetMouseDelay, -1
  11. SetDefaultMouseSpeed, 0
  12. SetWinDelay, -1
  13.  
  14.  
  15.  
  16. F11::
  17. while KeyIsDown := GetKeyState("F11")
  18. {
  19. WinGetPos, X, Y, Width, Height, Path of Exile
  20. X2 := (X + Width)
  21. Y2 := (Y + Height)
  22. PixelSearch, Px, Py, X, Y, X2, Y2, 0xF0ED53, 3, Fast RGB
  23. if ErrorLevel
  24. return
  25. else
  26. MouseMove, Px+50, Py+10, 0
  27. Click
  28. Sleep , -1 ; 50 or so
  29. }
  30. return
Advertisement
Add Comment
Please, Sign In to add comment