Advertisement
Guest User

Untitled

a guest
May 29th, 2016
336
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.99 KB | None | 0 0
  1. #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
  2. ; #Warn ; Enable warnings to assist with detecting common errors.
  3. SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
  4. SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
  5.  
  6. /*
  7. ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  8. /////////////////////////////////////////////////// GTA Online Quick MACRO’S///////////////////////////////////////////////////
  9. ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  10.  
  11. AutoHotkey Version: v1.1.22.05
  12. Language: English
  13. Platform: Windows 10 Home (64 bit)
  14. Original Author: twentyafterfour
  15. Modified by: StArL0rd84
  16.  
  17. /////////////////////////////////////////////////////////////////////////////////
  18.  
  19.  
  20. Introduction:
  21.  
  22. Remember to run AutoHotkey with administrator privileges or it won't work.
  23.  
  24. Everthing in this script can be modified to your needs. BUT BE CAREFUL!
  25.  
  26. /////////////////////////////////////////////////////////////////////////////////
  27.  
  28. Delays
  29.  
  30. The interaction menu and phone menu have different delay times due to unknown reasons,
  31. so be sure to remember this if you are gonna change the delay settings below.
  32. Everything is dialed in so the macro's are executed as fast and reliable as posible,
  33. maybe even faster than you will be able to do mannually.
  34.  
  35. So test every hotkey in GTA before you touch anything.
  36.  
  37. I have not tested this script on other computers, So the delays might be different for you
  38. due to the fact that your computer could be slower or faster than mine.
  39. This is pure speculation, but remember you can try to change the delay times if the macros selects
  40. the wrong things in the menus.
  41.  
  42. But i hope the delay times, already set, just works for you,
  43. because it can take some knowhow to adjust them just right.
  44.  
  45. (Delays are measured in milliseconds) (1000 milliseconds in 1 second)
  46.  
  47.  
  48. HAVE FUN! c",)
  49.  
  50. */
  51.  
  52. IF NOT A_IsAdmin
  53. {
  54. Run *RunAs "%A_ScriptFullPath%"
  55. ExitApp
  56. }
  57.  
  58. #NoEnv ;--------------------------------------> Recommended for performance and compatibility with future AutoHotkey releases.
  59. SetWorkingDir %A_ScriptDir% ;--------------------------------------> Ensures a consistent starting directory.
  60. #SingleInstance, Force ;--------------------------------------> Determines whether a script is allowed to run again when it is already running
  61. #IfWinActive, ahk_class grcWindow ;--------------------------------------> Disables hotkeys when alt-tabbed or GTA is closed.
  62.  
  63. ;/////////////////////////////////////////////////////////////////////////////////
  64. ;Delays
  65. IntMenuDelay = 20000 ;-------------------------------------------> Additional delay after opening interaction menu.
  66. KeySendDelay = 10000 ;-------------------------------------------> Delay between send key commands.
  67.  
  68. KeyPressDuration = 7000 ;-------------------------------------------> Duration each key press is held down.
  69. PhoneDelay = 50000 ;-------------------------------------------> Delay between send key commands.
  70.  
  71. setkeydelay, %KeySendDelay%, %KeyPressDuration% ;-------------------> Delay between keystrokes and press duration, respectively. (Don't touch, Variables for macros)
  72.  
  73.  
  74. ;/////////////////////////////////////////////////////////////////////////////////
  75. ; Changing hotkeys:
  76.  
  77.  
  78. PassiveToggleKey := "Numpad0"
  79. GetCarKey := "Numpad1"
  80. MorsMutualKey := "Numpad2"
  81. LesterKey := "Numpad3"
  82. ArmorKey := "Numpad4"
  83. PegasusKey := "Numpad5"
  84. LamarKey := "Numpad6"
  85. SnackKey := "Numpad7"
  86. SocialClubKey := "Numpad8"
  87. QuickRaceKey := "Numpad9"
  88. MerryweatherKey := "NumpadMult"
  89. VolumeDownKey := "NumpadAdd"
  90. VolumeUpKey := "NumpadSub"
  91. NextTrackKey := "NumpadEnter"
  92. JoinFriendsKey := "NumpadDiv"
  93. JoinCrewMembersKey := "Tab"
  94. ImpromptuRaceKey := "Backspace"
  95.  
  96.  
  97. ;Remap Next Track key in bindings (In-game) to a punctuation/period dot.
  98. ;Remap Prev Track key in bindings (In-game) to the numpad delete/comma button.
  99.  
  100. ;/////////////////////////////////////////////////////////////////////////////////
  101. ; Do not touch:
  102.  
  103. Hotkey, %PassiveToggleKey%, PassiveToggle
  104. Hotkey, %GetCarKey%, GetCar
  105. Hotkey, %MorsMutualKey%, MorsMutual
  106. Hotkey, %LesterKey%, Lester
  107. Hotkey, %ArmorKey%, SuperHeavyArmor
  108. Hotkey, %PegasusKey%, Pegasus
  109. Hotkey, %LamarKey%, Lamar
  110. Hotkey, %SnackKey%, Snack
  111. Hotkey, %SocialClubKey%, SocialClub
  112. Hotkey, %QuickRaceKey%, QuickRace
  113. Hotkey, %MerryweatherKey%, Merryweather
  114. Hotkey, %VolumeDownKey%, VolumeDown
  115. Hotkey, %VolumeUpKey%, VolumeUp
  116. Hotkey, %NextTrackKey%, NextTrack
  117. Hotkey, %JoinFriendsKey%, JoinFriends
  118. Hotkey, %JoinCrewMembersKey%, JoinCrewMembers
  119. Hotkey, %ImpromptuRaceKey%, ImpromptuRace
  120. return
  121.  
  122. ;/////////////////////////////////////////////////////////////////////////////////
  123.  
  124. PassiveToggle: ;---------------------------------------------------> Function/Title.
  125. Send {m} ;---------------------------------------------------> Opens Interaction Menu.
  126. sleep, %IntMenuDelay% ;---------------------------------------------------> A delay is nessesary for the menu to pop up before the navigation commands starts.
  127.  
  128. Send {Down 8}{Enter}{m} ;-------> Navigation commands.
  129.  
  130. return ;-------------------------------------------------------------> End of macro.
  131.  
  132. ;/////////////////////////////////////////////////////////////////////////////////
  133.  
  134. GetCar:
  135. Send {Up} ;---------------------------------------------------> Opens Phone.
  136. sleep, %PhoneDelay%
  137.  
  138. Send {Right}{Up}{Enter}
  139. Send {Up 6}{Enter}
  140.  
  141. return
  142.  
  143. ;/////////////////////////////////////////////////////////////////////////////////
  144.  
  145. MorsMutual:
  146. Send {Up}
  147. sleep, %PhoneDelay%
  148.  
  149. Send {Right}{Up}{Enter}
  150. Send {Up 4}{Enter}
  151.  
  152. return
  153.  
  154. ;/////////////////////////////////////////////////////////////////////////////////
  155.  
  156. Lester:
  157. Send {Up}
  158. sleep, %PhoneDelay%
  159.  
  160. Send {Right}{Up}{Return}
  161. Send {Up 8}{Enter}
  162.  
  163. return
  164.  
  165. ;/////////////////////////////////////////////////////////////////////////////////
  166.  
  167. SuperHeavyArmor:
  168. Send {m}
  169. sleep, %IntMenuDelay%
  170.  
  171. Send {Down}{Enter}{Down 2}{Enter}
  172. Send {Down 4}{Enter}{m}
  173.  
  174. return
  175.  
  176. ;/////////////////////////////////////////////////////////////////////////////////
  177.  
  178. Pegasus:
  179. Send {Up}
  180. sleep, %PhoneDelay%
  181.  
  182. Send {Right}{Up}{Enter}
  183. Send {Up 3}{Enter}
  184.  
  185. return
  186.  
  187. ;/////////////////////////////////////////////////////////////////////////////////
  188.  
  189. Lamar:
  190. Send {Up}
  191. sleep, %PhoneDelay%
  192.  
  193. Send {Right}{Up}{Enter}
  194. Send {Up 9}{Enter}
  195.  
  196. return
  197.  
  198. ;/////////////////////////////////////////////////////////////////////////////////
  199.  
  200. Snack:
  201. Send {m}
  202. sleep, %IntMenuDelay%
  203.  
  204. Send {Down}{Enter}{Up}{Enter}
  205. Send {Down}{Enter 2}{m}
  206.  
  207. return
  208.  
  209. ;/////////////////////////////////////////////////////////////////////////////////
  210.  
  211. SocialClub:
  212. Send {HOME}
  213.  
  214. return
  215.  
  216. ;/////////////////////////////////////////////////////////////////////////////////
  217.  
  218. QuickRace:
  219. Send {Up}
  220. sleep, %PhoneDelay%
  221.  
  222. Send {Left}{Enter}
  223. Send {Down 3}{Enter}
  224. Send {Down}{Enter}
  225. Send {Enter}
  226.  
  227. return
  228.  
  229. ;/////////////////////////////////////////////////////////////////////////////////
  230.  
  231. Merryweather:
  232. Send {Up}
  233. sleep, %PhoneDelay%
  234.  
  235. Send {Right}{Up}{Enter}
  236. Send {Up 5}{Enter}
  237.  
  238. return
  239.  
  240. ;/////////////////////////////////////////////////////////////////////////////////
  241.  
  242. VolumeDown:
  243. Send {ESC}
  244. sleep, %PhoneDelay%
  245.  
  246. Send {Left 3}{Enter 2}
  247. sleep, 500
  248. Send {Down 3}{Enter}
  249. sleep, 500
  250. Send {Down}{Left 2}
  251. Send {ESC 3}
  252.  
  253. return
  254.  
  255. ;/////////////////////////////////////////////////////////////////////////////////
  256.  
  257. VolumeUp:
  258. Send {ESC}
  259. sleep, %PhoneDelay%
  260.  
  261. Send {Left 3}{Enter}{Enter}
  262. sleep, 500
  263. Send {Down 3}{Enter}
  264. sleep, 500
  265. Send {Down}{Right 2}
  266. Send {ESC 3}
  267.  
  268. return
  269.  
  270. ;/////////////////////////////////////////////////////////////////////////////////
  271.  
  272. NextTrack:
  273. Send {.} ;--------------------------> Remap this key in bindings In-game to a punctuation dot.
  274.  
  275. return
  276.  
  277. ;/////////////////////////////////////////////////////////////////////////////////
  278. ; Previous Track (In-game Self Radio Music)
  279.  
  280. ; Remap this in key bindings In-game to the numpad delete/comma button.
  281.  
  282. ;/////////////////////////////////////////////////////////////////////////////////
  283.  
  284. JoinFriends:
  285. Send {ESC}
  286. sleep, %PhoneDelay%
  287.  
  288. Send {Right}{Right}{Enter}
  289. sleep, 2000
  290. Send {Enter}
  291.  
  292. return
  293.  
  294. ;/////////////////////////////////////////////////////////////////////////////////
  295.  
  296. JoinCrewMembers:
  297. Send {ESC}
  298. sleep, %PhoneDelay%
  299.  
  300. Send {Right}
  301. sleep, 1000
  302. Send {Enter}
  303. sleep, 500
  304. Send {Down 5}{Enter}
  305. sleep, 500
  306. Send {Enter}
  307. sleep, 500
  308. Send {Down}{Enter 2}
  309.  
  310. return
  311.  
  312. ;/////////////////////////////////////////////////////////////////////////////////
  313.  
  314. ImpromptuRace:
  315. Send {m}
  316. sleep, %IntMenuDelay%
  317.  
  318. Send {Down 4}
  319. Send {Enter 2}
  320.  
  321. return
  322.  
  323. ;/////////////////////////////////////////////////////////////////////////////////
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement