Last active
June 13, 2022 04:05
-
-
Save Alistair1231/3ce720d1700dd1a346e336592736bef0 to your computer and use it in GitHub Desktop.
Lost Ark Anti AFK kick script | click out of the game for it to work!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#SingleInstance, Force | |
SendMode Input | |
SetWorkingDir, %A_ScriptDir% | |
; icon file download | |
; https://mir.cr/N9HJXVGH | |
I_Icon = antiafk.ico | |
ICON [I_Icon] ;Changes a compiled script's icon (.exe) | |
if I_Icon <> | |
IfExist, %I_Icon% | |
Menu, Tray, Icon, %I_Icon% ;Changes menu tray icon | |
Loop{ | |
Sleep, 10000 | |
if WinExist("ahk_exe LOSTARK.exe"){ | |
if not WinActive("ahk_exe LOSTARK.exe"){ | |
FileAppend, Game in Background , * | |
ControlSend,, {LCtrl Down},ahk_exe LOSTARK.exe | |
Random, rand, 60,200 | |
Sleep, rand | |
ControlSend,, {LCtrl Up},ahk_exe LOSTARK.exe | |
Random, rand, 60000,120000 | |
FileAppend, sleeping for %rand% ms , * | |
Sleep, rand | |
} | |
else{ | |
FileAppend, Game in Foreground , * | |
} | |
} | |
else{ | |
FileAppend, Game not running , * | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
save as antiafk.ico
![antiafk ico](https://user-images.githubusercontent.com/26165288/153752755-4f7a269e-4dd1-48c3-a1cf-154cc2ec1b31.jpg)