Skip to content

Instantly share code, notes, and snippets.

@daubac402
Last active October 17, 2023 08:49
Show Gist options
  • Save daubac402/7f7fe21f5474194cc1827be3c3c74404 to your computer and use it in GitHub Desktop.
Save daubac402/7f7fe21f5474194cc1827be3c3c74404 to your computer and use it in GitHub Desktop.
Toggle Auto holding W key (accelerator key) for GTA Online (turn on/off by Numpad Add key) (require: AutoHotkey)
timer_cb:
{
SetKeyDelay, -1
if (toggle_flag) {
Send, {Blind}{w DownTemp}
} else {
SetTimer, timer_cb, OFF
Send, {Blind}{w UP}
}
}
NumpadAdd:: ; "Numpad +" hotkey
{
toggle_flag := !toggle_flag
SetTimer, timer_cb, 0
}
@daubac402
Copy link
Author

daubac402 commented Jul 8, 2019

  1. Cài Autohotkey: https://www.autohotkey.com/
  2. Click "Download Zip" ở góc phải, về giải nén ra rồi click đúp là xong.
  3. Vào game, bật/tắt tự động giữ phím W bằng nút + bên numpad nha 💃

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