Advertisement
Guest User

Untitled

a guest
Mar 19th, 2019
6,919
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.37 KB | None | 0 0
  1. #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
  2. ; #Warn ; Enable warnings to assist with detecting common errors.
  3. SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
  4. SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
  5.  
  6. ; Set the mode to capture the whole screen pixels
  7. ; This has to be done because when you hover over a friend, it creates more pixels under the "EpicGames" window.
  8. ; Meaning it's hard to keep track of pixel location effieiently in Window or Client mode.
  9. CoordMode, Mouse, Screen
  10.  
  11. ; Set the key to press as H
  12. H::
  13. ; While H is pressed down
  14. while GetKeyState("h","p") {
  15.  
  16. ; Sleep for 50 ticks to try help stop the epic games client from crashing.
  17. sleep, 50
  18.  
  19. ; Move the mouse, left click, X coord, Y coord, one click, 50 speed (half)
  20. ; Clicks on top friend
  21. MouseClick, left, 303, 248, 1, 50
  22. Sleep, 50
  23. ; Click on remove friend pop up
  24. MouseClick, left, 2458, 340, 1, 50
  25. Sleep, 50
  26. ; Click on yes confirmation (blue)
  27. MouseClick, left, 645, 755, 1, 50
  28. }
  29. Return
  30.  
  31. ; Remove offline players (remove friend button is higher up (no whisper option))
  32. G::
  33. while GetKeyState("g","p") {
  34. sleep, 50
  35. MouseClick, left, 303, 248, 1, 50
  36. Sleep, 50
  37. MouseClick, left, 2459, 259, 1, 50
  38. Sleep, 50
  39. MouseClick, left, 645, 755, 1, 50
  40. }
  41. Return
  42.  
  43. F12::ExitApp
  44. Return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement