Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
- ; #Warn ; Enable warnings to assist with detecting common errors.
- SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
- SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
- /*
- ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- /////////////////////////////////////////////////// GTA Online Quick MACRO’S///////////////////////////////////////////////////
- ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- AutoHotkey Version: v1.1.22.05
- Language: English
- Platform: Windows 10 Home (64 bit)
- Original Author: twentyafterfour
- Modified by: StArL0rd84
- /////////////////////////////////////////////////////////////////////////////////
- Introduction:
- Remember to run AutoHotkey with administrator privileges or it won't work.
- Everthing in this script can be modified to your needs. BUT BE CAREFUL!
- /////////////////////////////////////////////////////////////////////////////////
- Delays
- The interaction menu and phone menu have different delay times due to unknown reasons,
- so be sure to remember this if you are gonna change the delay settings below.
- Everything is dialed in so the macro's are executed as fast and reliable as posible,
- maybe even faster than you will be able to do mannually.
- So test every hotkey in GTA before you touch anything.
- I have not tested this script on other computers, So the delays might be different for you
- due to the fact that your computer could be slower or faster than mine.
- This is pure speculation, but remember you can try to change the delay times if the macros selects
- the wrong things in the menus.
- But i hope the delay times, already set, just works for you,
- because it can take some knowhow to adjust them just right.
- (Delays are measured in milliseconds) (1000 milliseconds in 1 second)
- HAVE FUN! c",)
- */
- IF NOT A_IsAdmin
- {
- Run *RunAs "%A_ScriptFullPath%"
- ExitApp
- }
- #NoEnv ;--------------------------------------> Recommended for performance and compatibility with future AutoHotkey releases.
- SetWorkingDir %A_ScriptDir% ;--------------------------------------> Ensures a consistent starting directory.
- #SingleInstance, Force ;--------------------------------------> Determines whether a script is allowed to run again when it is already running
- #IfWinActive, ahk_class grcWindow ;--------------------------------------> Disables hotkeys when alt-tabbed or GTA is closed.
- ;/////////////////////////////////////////////////////////////////////////////////
- ;Delays
- IntMenuDelay = 20000 ;-------------------------------------------> Additional delay after opening interaction menu.
- KeySendDelay = 10000 ;-------------------------------------------> Delay between send key commands.
- KeyPressDuration = 7000 ;-------------------------------------------> Duration each key press is held down.
- PhoneDelay = 50000 ;-------------------------------------------> Delay between send key commands.
- setkeydelay, %KeySendDelay%, %KeyPressDuration% ;-------------------> Delay between keystrokes and press duration, respectively. (Don't touch, Variables for macros)
- ;/////////////////////////////////////////////////////////////////////////////////
- ; Changing hotkeys:
- PassiveToggleKey := "Numpad0"
- GetCarKey := "Numpad1"
- MorsMutualKey := "Numpad2"
- LesterKey := "Numpad3"
- ArmorKey := "Numpad4"
- PegasusKey := "Numpad5"
- LamarKey := "Numpad6"
- SnackKey := "Numpad7"
- SocialClubKey := "Numpad8"
- QuickRaceKey := "Numpad9"
- MerryweatherKey := "NumpadMult"
- VolumeDownKey := "NumpadAdd"
- VolumeUpKey := "NumpadSub"
- NextTrackKey := "NumpadEnter"
- JoinFriendsKey := "NumpadDiv"
- JoinCrewMembersKey := "Tab"
- ImpromptuRaceKey := "Backspace"
- ;Remap Next Track key in bindings (In-game) to a punctuation/period dot.
- ;Remap Prev Track key in bindings (In-game) to the numpad delete/comma button.
- ;/////////////////////////////////////////////////////////////////////////////////
- ; Do not touch:
- Hotkey, %PassiveToggleKey%, PassiveToggle
- Hotkey, %GetCarKey%, GetCar
- Hotkey, %MorsMutualKey%, MorsMutual
- Hotkey, %LesterKey%, Lester
- Hotkey, %ArmorKey%, SuperHeavyArmor
- Hotkey, %PegasusKey%, Pegasus
- Hotkey, %LamarKey%, Lamar
- Hotkey, %SnackKey%, Snack
- Hotkey, %SocialClubKey%, SocialClub
- Hotkey, %QuickRaceKey%, QuickRace
- Hotkey, %MerryweatherKey%, Merryweather
- Hotkey, %VolumeDownKey%, VolumeDown
- Hotkey, %VolumeUpKey%, VolumeUp
- Hotkey, %NextTrackKey%, NextTrack
- Hotkey, %JoinFriendsKey%, JoinFriends
- Hotkey, %JoinCrewMembersKey%, JoinCrewMembers
- Hotkey, %ImpromptuRaceKey%, ImpromptuRace
- return
- ;/////////////////////////////////////////////////////////////////////////////////
- PassiveToggle: ;---------------------------------------------------> Function/Title.
- Send {m} ;---------------------------------------------------> Opens Interaction Menu.
- sleep, %IntMenuDelay% ;---------------------------------------------------> A delay is nessesary for the menu to pop up before the navigation commands starts.
- Send {Down 8}{Enter}{m} ;-------> Navigation commands.
- return ;-------------------------------------------------------------> End of macro.
- ;/////////////////////////////////////////////////////////////////////////////////
- GetCar:
- Send {Up} ;---------------------------------------------------> Opens Phone.
- sleep, %PhoneDelay%
- Send {Right}{Up}{Enter}
- Send {Up 6}{Enter}
- return
- ;/////////////////////////////////////////////////////////////////////////////////
- MorsMutual:
- Send {Up}
- sleep, %PhoneDelay%
- Send {Right}{Up}{Enter}
- Send {Up 4}{Enter}
- return
- ;/////////////////////////////////////////////////////////////////////////////////
- Lester:
- Send {Up}
- sleep, %PhoneDelay%
- Send {Right}{Up}{Return}
- Send {Up 8}{Enter}
- return
- ;/////////////////////////////////////////////////////////////////////////////////
- SuperHeavyArmor:
- Send {m}
- sleep, %IntMenuDelay%
- Send {Down}{Enter}{Down 2}{Enter}
- Send {Down 4}{Enter}{m}
- return
- ;/////////////////////////////////////////////////////////////////////////////////
- Pegasus:
- Send {Up}
- sleep, %PhoneDelay%
- Send {Right}{Up}{Enter}
- Send {Up 3}{Enter}
- return
- ;/////////////////////////////////////////////////////////////////////////////////
- Lamar:
- Send {Up}
- sleep, %PhoneDelay%
- Send {Right}{Up}{Enter}
- Send {Up 9}{Enter}
- return
- ;/////////////////////////////////////////////////////////////////////////////////
- Snack:
- Send {m}
- sleep, %IntMenuDelay%
- Send {Down}{Enter}{Up}{Enter}
- Send {Down}{Enter 2}{m}
- return
- ;/////////////////////////////////////////////////////////////////////////////////
- SocialClub:
- Send {HOME}
- return
- ;/////////////////////////////////////////////////////////////////////////////////
- QuickRace:
- Send {Up}
- sleep, %PhoneDelay%
- Send {Left}{Enter}
- Send {Down 3}{Enter}
- Send {Down}{Enter}
- Send {Enter}
- return
- ;/////////////////////////////////////////////////////////////////////////////////
- Merryweather:
- Send {Up}
- sleep, %PhoneDelay%
- Send {Right}{Up}{Enter}
- Send {Up 5}{Enter}
- return
- ;/////////////////////////////////////////////////////////////////////////////////
- VolumeDown:
- Send {ESC}
- sleep, %PhoneDelay%
- Send {Left 3}{Enter 2}
- sleep, 500
- Send {Down 3}{Enter}
- sleep, 500
- Send {Down}{Left 2}
- Send {ESC 3}
- return
- ;/////////////////////////////////////////////////////////////////////////////////
- VolumeUp:
- Send {ESC}
- sleep, %PhoneDelay%
- Send {Left 3}{Enter}{Enter}
- sleep, 500
- Send {Down 3}{Enter}
- sleep, 500
- Send {Down}{Right 2}
- Send {ESC 3}
- return
- ;/////////////////////////////////////////////////////////////////////////////////
- NextTrack:
- Send {.} ;--------------------------> Remap this key in bindings In-game to a punctuation dot.
- return
- ;/////////////////////////////////////////////////////////////////////////////////
- ; Previous Track (In-game Self Radio Music)
- ; Remap this in key bindings In-game to the numpad delete/comma button.
- ;/////////////////////////////////////////////////////////////////////////////////
- JoinFriends:
- Send {ESC}
- sleep, %PhoneDelay%
- Send {Right}{Right}{Enter}
- sleep, 2000
- Send {Enter}
- return
- ;/////////////////////////////////////////////////////////////////////////////////
- JoinCrewMembers:
- Send {ESC}
- sleep, %PhoneDelay%
- Send {Right}
- sleep, 1000
- Send {Enter}
- sleep, 500
- Send {Down 5}{Enter}
- sleep, 500
- Send {Enter}
- sleep, 500
- Send {Down}{Enter 2}
- return
- ;/////////////////////////////////////////////////////////////////////////////////
- ImpromptuRace:
- Send {m}
- sleep, %IntMenuDelay%
- Send {Down 4}
- Send {Enter 2}
- return
- ;/////////////////////////////////////////////////////////////////////////////////
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement