A simple script written by AutoHotKey_v2.0 (AHK) for AFK in GTA V Online or any other online games to avoid being kicked by server. Players not need to go to some spcial place in Los Santos for AFK with the use of this script.
This script will repeatedly send keystrokes with at a certain interval.
- Active Mode
- sends keystrokes to the active (the top window that you are focusing)
- the target window MUST BE the TOP window
- Inactive Mode
- sends keystrokes to any window you have chosen
- the target window CAN be minimized
- if the GTAV is the target widnow, this mode WILL shortly interrupt for your current task on the active window (losing focus, GTA pops up and minimized repeatedly when keystrokes sent)
- longer press interval recommended
Key | Task |
---|---|
Win+` | Show GUI |
Win+ESC | Kill the Script |
- Run the executable / Download AHK_v2
- Select the mode of the script and start AFK
- The close button of the executable of this script DOES NOT kill the script but just close the GUI
- Key1 & Key2 cannot be set as special keys like Ctrl, Shift etc.
- You can press the radio button to refresh the
Target Window
list - For GTAV, probably there is some mechanism has been deployed to avoid external automated keystrokes by scipt, the inactive mode is not using
ControlSend
function, but usingSend
instead, which cause the forementioned interruption - the executable from
Release
is compiled by Ahk2Exe