Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
- ; #Warn ; Enable warnings to assist with detecting common errors.
- SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
- SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
- ; Set the mode to capture the whole screen pixels
- ; This has to be done because when you hover over a friend, it creates more pixels under the "EpicGames" window.
- ; Meaning it's hard to keep track of pixel location effieiently in Window or Client mode.
- CoordMode, Mouse, Screen
- ; Set the key to press as H
- H::
- ; While H is pressed down
- while GetKeyState("h","p") {
- ; Sleep for 50 ticks to try help stop the epic games client from crashing.
- sleep, 50
- ; Move the mouse, left click, X coord, Y coord, one click, 50 speed (half)
- ; Clicks on top friend
- MouseClick, left, 303, 248, 1, 50
- Sleep, 50
- ; Click on remove friend pop up
- MouseClick, left, 2458, 340, 1, 50
- Sleep, 50
- ; Click on yes confirmation (blue)
- MouseClick, left, 645, 755, 1, 50
- }
- Return
- ; Remove offline players (remove friend button is higher up (no whisper option))
- G::
- while GetKeyState("g","p") {
- sleep, 50
- MouseClick, left, 303, 248, 1, 50
- Sleep, 50
- MouseClick, left, 2459, 259, 1, 50
- Sleep, 50
- MouseClick, left, 645, 755, 1, 50
- }
- Return
- F12::ExitApp
- Return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement