Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;
- ; GTA V Useful Macros v4.21
- ; AutoHotkey Version: v1.1.22.00
- ; Language: English
- ; Platform: Pirated Windows 8 Professional (64 bit)
- ; Author: twentyafterfour
- ;
- ;
- ; Script Function: Provides hotkeys for opening snack menu, equipping armor, entering passive mode, and retrieving vehicle. Keeps you from dying like a bitch during heists.
- ; Allows you to be a cockbag in deathmatches.
- ;
- ; General Notes: Works on foot and in vehicles. Does not work in safehouses where "Invite to apartment" option is present. I cleared the "." key from change radio station
- ; in cars just to be safe. It seems that the interaction menu occasionally fails to stay open the very first time you use the hotkeys after loading into a
- ; free-roam or heist. You can open the interaction menu or run a macro once to prevent this from happening again.
- ;
- ; To change a hotkey for a macro or adjust delay settings simply replace the assigned value in the "Assign Hotkey and Delay" section with your new value.
- ; A list of keynames for the non-alphanumeric can be found in the autohotkey help under the heading "Basic Usage and Syntax" with the name "Key List".
- ; They can also be found at https://www.autohotkey.com/docs/KeyList.htm
- ;
- ;
- ; Tested May 5th 2015 with no major issues.
- #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
- SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
- #IfWinActive ahk_class grcWindow ; Disables hotkeys when alt-tabbed or GTA is closed.
- ; ---------Assign Hotkey and Delay Values---------
- AutoHealthKey := "CapsLock" ; Set keybinding for macro here. Automatic snacking. Eats 2 snacks from second snack slot.
- HealthKey := "," ; Set keybinding for macro here. Open Snack menu.
- ArmorKey := "F1" ; Set keybinding for macro here.
- PassiveKey := "F4" ; Set keybinding for macro here.
- RetCarKey := "F3" ; Set keybinding for macro here.
- IntMenuDelay := 120 ; Sets value(ms) for additional delay after opening interaction menu.
- KeySendDelay := 25 ; Sets value(ms) for delay between send key commands.
- KeyPressDuration := 5 ; Sets value(ms) for duration each key press is held down.
- ; ----Hotkey Code Section----
- Hotkey, %AutoHealthKey%, AutoHealth ; Assigns above value to hotkey. Do not change this line.
- Hotkey, %HealthKey%, Health ; Assigns above value to hotkey. Do not change this line.
- Hotkey, %ArmorKey%, Armor ; Assigns above value to hotkey. Do not change this line.
- Hotkey, %PassiveKey%, Passive ; Assigns above value to hotkey. Do not change this line.
- Hotkey, %RetCarKey%, RetCar ; Assigns above value to hotkey. Do not change this line.
- Return
- setkeydelay, KeySendDelay, KeyPressDuration ; Sets delay(ms) between keystrokes issued. Arguments are delay between keystrokes and press duration, respectively.
- ; They might be able to go lower but these values are pretty fast and work reliably.
- ; ----Macro Code Section----
- ; ----AutoHealth----
- ; Eats snacks automatically
- AutoHealth: ; AutoHealth Macro
- Send {m} ; Opens Interaction Menu
- sleep, IntMenuDelay ; Necessary delay to allow interaction menu to open properly while keeping keystroke delay short.
- ; Try to keep this value + the keystroke delay at least 80 ms for proper function.
- Send {Down}{Enter}{Up}{Enter} ; Keystrokes to open snack menu
- Send {Down}{Enter}{Enter}{m} ; Keystrokes to eat 2 of second snack
- return ; Separates Hotkey Entries
- ; ----Health----
- ; Opens up snack menu for manual selection of snacks
- Health: ; Health Macro
- Send {m} ; Opens Interaction Menu
- sleep, IntMenuDelay ; Necessary delay to allow interaction menu to open properly while keeping keystroke delay short.
- ; Try to keep this value + the keystroke delay at least 80 ms for proper function.
- Send {Down}{Enter}{Up}{Enter} ; Keystrokes to open snack menu
- return ; Separates Hotkey Entries
- ; ----Armor----
- ; Equips super heavy armor and exits menu automatically
- Armor: ; Armor Macro
- Send {m} ; Opens Interaction Menu
- sleep, IntMenuDelay ; Necessary delay to allow interaction menu to open properly while keeping keystroke delay short.
- ; Try to keep this value + the keystroke delay at least 80 ms for proper function.
- Send {Down}{Enter}{Down}{Down}{Enter} ; Opens Armor Menu
- Send {Down}{Down}{Down}{Down}{Enter}{m} ; Equips super heavy armor and exits automatically. This line can be changed to pick different armor types.
- return ; Separates Hotkey Entries
- ; ----Passive Mode----
- ; Enters and exits passive mode
- Passive: ; Passive Macro
- Send {m} ; Opens Interaction Menu
- sleep, IntMenuDelay ; Necessary delay to allow interaction menu to open properly while keeping keystroke delay short.
- ; Try to keep this value + the keystroke delay at least 80 ms for proper function.
- Send {Down}{Down}{Down}{Down}{Down}{Down}{Down}{Enter}{m} ; Toggles passive mode and exits automatically
- return ; Separates Hotkey Entries
- ; ----Retrieve Personal Vehicle----
- ; Requests delivery of personal vehicle
- RetCar: ; Vehicle Request Macro
- Send {m} ; Opens Interaction Menu
- sleep, IntMenuDelay ; Necessary delay to allow interaction menu to open properly while keeping keystroke delay short.
- ; Try to keep this value + the keystroke delay at least 80 ms for proper function.
- Send {Up}{Up}{Up}{Up}{Up}{Up}{Up}{Up}{Enter}{m} ; Requests vehicle and exits automatically
- return ; Separates Hotkey Entries
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement