Skip to content

Commit

Permalink
Merge pull request #22 from vCybah/GTA-v1.67-compat
Browse files Browse the repository at this point in the history
Fix some compatibility issues with GTA v1.67+
  • Loading branch information
2called-chaos authored Aug 9, 2023
2 parents 49659f5 + 814d56a commit 5a8b3d1
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions GTA V Online Macros.ahk
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; v1.3.0
; v1.3.1
; ^ don't remove or alter this line (autoupdate)
#MaxThreadsPerHotkey 2

Expand Down Expand Up @@ -83,7 +83,7 @@ CheckForUpdatesKey := "F24" ; Checks on startup by default, see DoCheckForUpda

; ManualInventoryLocation (manual inventory line calibration)
ManualInventoryLocation := false ; if true, use manual calibration of the inventory line in the interactive menu. IsCPHActive and IsVIPActive flags will be ignored.
InvLocation := 3 ; by default, this is the location of the inventory in the menu
InvLocation := 4 ; by default, this is the location of the inventory in the menu
AutoSnackLocation := 2 ; by default, this is the snack autosnack will select
; these keys will not be bound if ManualInventoryLocation is false
IncInvKey := "NumpadAdd" ; for increasing the value of the inventory line
Expand Down Expand Up @@ -301,9 +301,9 @@ openInteractionMenu(isVIPActive, isCPHActive, goingDown) {
if (isCPHActive = 1) {
TimesDown := 2
}
else if (isVIPActive = 1) {
TimesDown := 1
}
; else if (isVIPActive = 1) {
; TimesDown := 1
; }
}
Loop %TimesDown% {
Send {%IGB_Down%}
Expand All @@ -314,22 +314,22 @@ openInteractionMenu(isVIPActive, isCPHActive, goingDown) {
openSnackMenu() {
global ManualInventoryLocation
if !ManualInventoryLocation
Send {%IGB_Down%}{%IGB_Down%}
Send {%IGB_Enter%}{%IGB_Down%}{%IGB_Down%}{%IGB_Down%}{%IGB_Down%}{%IGB_Enter%}
Send {%IGB_Down%}{%IGB_Down%}{%IGB_Down%}
Send {%IGB_Enter%}{%IGB_Down%}{%IGB_Down%}{%IGB_Down%}{%IGB_Down%}{%IGB_Down%}{%IGB_Enter%}
}

openArmorMenu() {
global ManualInventoryLocation
if !ManualInventoryLocation
Send {%IGB_Down%}{%IGB_Down%}
Send {%IGB_Enter%}{%IGB_Down%}{%IGB_Down%}{%IGB_Down%}{%IGB_Enter%}
Send {%IGB_Down%}{%IGB_Down%}{%IGB_Down%}
Send {%IGB_Enter%}{%IGB_Down%}{%IGB_Down%}{%IGB_Down%}{%IGB_Down%}{%IGB_Enter%}
}

openOutfitMenu() {
global ManualInventoryLocation
if !ManualInventoryLocation
Send {%IGB_Down%}{%IGB_Down%}
Send {%IGB_Down%}{%IGB_Enter%}{%IGB_Down%}{%IGB_Down%}{%IGB_Down%}
Send {%IGB_Down%}{%IGB_Down%}{%IGB_Enter%}{%IGB_Down%}{%IGB_Down%}{%IGB_Down%}
}

openPhone() {
Expand Down Expand Up @@ -598,7 +598,7 @@ ToggleRadar:
sleep, IntPhoneMenuDelay2

; Not using IGB_ variables on purpose as pause menu has static bindings
Send {Right}{Right}{Right}{Right}
Send {Right}{Right}{Right}{Right}{Right}
Sleep IntPhoneMenuDelay2 * 2
Send {Enter}
Sleep IntPhoneMenuDelay2
Expand Down Expand Up @@ -767,7 +767,7 @@ ArmorMenu:
AutoArmor:
openInteractionMenu(IsVIPActivated, IsCPHActivated, true)
openArmorMenu()
Send {%IGB_Down%}{%IGB_Down%}{%IGB_Down%}{%IGB_Down%}{%IGB_Enter%}{%IGB_Interaction%}
Send {%IGB_Down% 4}{%IGB_Enter%}{%IGB_Interaction%}
return

; Equips scarf to allow faster running with heist armor (see readme/misc)
Expand All @@ -776,9 +776,9 @@ EquipScarf:
if !ManualInventoryLocation
Send {%IGB_Down%}{%IGB_Down%}
; Opens scarf menu
Send {%IGB_Down%}{%IGB_Enter%}{%IGB_Down%}{%IGB_Enter%}
Send {%IGB_Down%}{%IGB_Down%}{%IGB_Enter%}{%IGB_Down%}{%IGB_Enter%}
; equip scarf and exit menu. This line can be changed to pick different scarfs.
Send {%IGB_Up%}{%IGB_Up%}{%IGB_Up%}{%IGB_Up%}{%IGB_Right%}{%IGB_Interaction%}
Send {%IGB_Up% 4}{%IGB_Right%}{%IGB_Interaction%}
return

; Cycle between your saved outfits
Expand All @@ -799,7 +799,7 @@ RetrieveCar:
openInteractionMenu(IsVIPActivated, IsCPHActivated, true)
if !ManualInventoryLocation
Send {%IGB_Down%}{%IGB_Down%}
Send {%IGB_Down%}{%IGB_Down%}{%IGB_Enter%}{%IGB_Enter%}{%IGB_Interaction%}
Send {%IGB_Down% 3}{%IGB_Enter%}{%IGB_Enter%}{%IGB_Interaction%}
return

; Chooses on-call random heist from phone options
Expand All @@ -824,15 +824,15 @@ RequestSparrow:
openInteractionMenu(IsVIPActivated, IsCPHActivated, true)
if !ManualInventoryLocation
Send {%IGB_Down%}{%IGB_Down%}
Send {%IGB_Down%}{%IGB_Down%}{%IGB_Down%}{%IGB_Enter%}{%IGB_Up%}{%IGB_Enter%}{%IGB_Down%}{%IGB_Enter%}
Send {%IGB_Down% 4}{%IGB_Enter%}{%IGB_Up%}{%IGB_Up%}{%IGB_Enter%}{%IGB_Down%}{%IGB_Enter%}
return

; Return your Sparrow to the Kosatka
ReturnSparrow:
openInteractionMenu(IsVIPActivated, IsCPHActivated, true)
if !ManualInventoryLocation
Send {%IGB_Down%}{%IGB_Down%}
Send {%IGB_Down%}{%IGB_Down%}{%IGB_Down%}{%IGB_Enter%}{%IGB_Up%}{%IGB_Enter%}{%IGB_Down%}{%IGB_Down%}{%IGB_Down%}{%IGB_Enter%}{%IGB_Up%}{%IGB_Up%}{%IGB_Enter%}
Send {%IGB_Down% 4}{%IGB_Enter%}{%IGB_Up%}{%IGB_Up%}{%IGB_Enter%}{%IGB_Down% 3}{%IGB_Enter%}{%IGB_Up%}{%IGB_Up%}{%IGB_Enter%}
return

; Show a list of chat snippets to type out (chat must be opened)
Expand Down

0 comments on commit 5a8b3d1

Please sign in to comment.