Skip to content

Instantly share code, notes, and snippets.

@Alistair1231
Last active June 13, 2022 04:05
Show Gist options
  • Save Alistair1231/3ce720d1700dd1a346e336592736bef0 to your computer and use it in GitHub Desktop.
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!
#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 , *
}
}
@Alistair1231
Copy link
Author

save as antiafk.ico
antiafk ico

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment