Skip to content
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.

Update functions.ahk #2

Open
wants to merge 41 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
8141798
Update functions.ahk
Liscum Jul 27, 2019
32708b5
Update functions.ahk
Liscum Jul 27, 2019
c6b5296
Update functions.ahk
Liscum Jul 28, 2019
71b35d6
Update functions.ahk
Liscum Aug 3, 2019
e8420c7
Update conf.ahk
Liscum Aug 3, 2019
f10efb0
Delete crosshair.ahk
Liscum Aug 3, 2019
871099e
Update keys.ahk
Liscum Aug 3, 2019
6ec3fab
Update labels.ahk
Liscum Aug 3, 2019
2bf4000
Update tray.ahk
Liscum Aug 3, 2019
4887fde
Update variables.ahk
Liscum Aug 3, 2019
a43677d
Update QuickMacro.ahk
Liscum Aug 3, 2019
b57f3c2
Add files via upload
Liscum Aug 3, 2019
9239fde
Add files via upload
Liscum Aug 3, 2019
1bdd5c5
Update README.md
Liscum Aug 3, 2019
98c8f27
Update README.md
Liscum Aug 3, 2019
5dda329
Update README.md
Liscum Aug 3, 2019
c738313
Update README.md
Liscum Aug 3, 2019
fc47329
Update README.md
Liscum Aug 3, 2019
967cfaa
Update README.md
Liscum Aug 3, 2019
0771b22
Update README.md
Liscum Aug 3, 2019
b2b642e
Update README.md
Liscum Aug 3, 2019
cac8881
Update README.md
Liscum Aug 3, 2019
d605c91
Update README.md
Liscum Aug 3, 2019
abffab1
Update functions.ahk
Liscum Aug 3, 2019
ab7fcf3
Update keys.ahk
Liscum Aug 3, 2019
3513c89
Update labels.ahk
Liscum Aug 3, 2019
0b38456
Update conf.ahk
Liscum Aug 3, 2019
591f3d4
Delete usage.png
Liscum Aug 3, 2019
fa8790d
Delete QuickMacro.exe
Liscum Aug 3, 2019
a2025f0
Add files via upload
Liscum Aug 3, 2019
da2a65f
Delete usage.png
Liscum Aug 3, 2019
a94af2a
Add files via upload
Liscum Aug 3, 2019
102bea7
Delete usage.png
Liscum Aug 3, 2019
a200a1b
Add files via upload
Liscum Aug 3, 2019
09f81ec
Update README.md
Liscum Aug 3, 2019
a553a78
Delete crosshair.png
Liscum Aug 4, 2019
eb87541
Add files via upload
Liscum Mar 25, 2020
7f626c9
Update README.md
Liscum Mar 25, 2020
2026060
Add files via upload
Liscum Mar 25, 2020
e75c76a
Update README.md
Liscum Mar 25, 2020
374ad6c
Update README.md
Liscum Mar 25, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 19 additions & 6 deletions QuickMacro.ahk
Original file line number Diff line number Diff line change
@@ -1,7 +1,20 @@
;
; Copyright (C) 2017 MacMailler
; GitHub: https://github.com/MacMailler/QuickMacro
;
; RUN AS ADMIN
Loop, %0%
{
param := %A_Index%
params .= A_Space . param
}
ShellExecute := A_IsUnicode ? "shell32\ShellExecute":"shell32\ShellExecuteA"

IF NOT A_IsAdmin
{
If A_IsCompiled
DllCall(ShellExecute, uint, 0, str, "RunAs", str, A_ScriptFullPath, str, params , str, A_WorkingDir, int, 1)
Else
DllCall(ShellExecute, uint, 0, str, "RunAs", str, A_AhkPath, str, """" . A_ScriptFullPath . """" . A_Space . params, str, A_WorkingDir, int, 1)
ExitApp
}
; END RUN AS ADMIN

#NoEnv
#InstallKeybdHook
Expand All @@ -11,7 +24,7 @@
#Include %A_ScriptDir%\includes\keys.ahk
#Include %A_ScriptDir%\includes\conf.ahk
#Include %A_ScriptDir%\includes\tray.ahk
#Include %A_ScriptDir%\includes\crosshair.ahk
#include %A_ScriptDir%\includes\process_suspend.ahk

loadConf()

Expand All @@ -20,4 +33,4 @@ End::
return

#Include %A_ScriptDir%\includes\labels.ahk
#Include %A_ScriptDir%\includes\functions.ahk
#Include %A_ScriptDir%\includes\functions.ahk
Binary file added QuickMacro.exe
Binary file not shown.
Binary file added QuickMacro.ini
Binary file not shown.
52 changes: 30 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,28 +1,36 @@
# QuickMacro
GTA Online useful macros
GTA Online useful macros
This is a fork from https://github.com/MacMailler/QuickMacro that I reworked to do what I want it to do. Big Thanks to MacMailler for creating QuickMacro.

Features like sound when enabling QuickMacro/CEO Mode or Empty session are coming from Kezoura (https://github.com/kezoura/GTAO-Macro)

### Installation and using
1. [Download](https://github.com/MacMailler/QuickMacro/releases) latest version
2. Unpack to any place
3. Run GTA Online
4. Run QuickMacro.exe (after opening GTAV window)
5. Press the "End" key
1. [Download](https://github.com/Liscum/QuickMacro/raw/master/QuickMacro.exe) latest version
2. Run GTA Online
3. Run QuickMacro.exe (after opening GTAV window)
4. Press the "End" key

### Hotkeys
+ End - Enable/Disable
+ Num0 + Num1 - Call Pegasus
+ Num0 + Num2 - Call Mechanic
+ Num0 + Num3 - Call Lester
+ Num0 + Num4 - Spawn Buzzard
+ Num0 + Num5 - Activate ghost team
+ Num0 + Num6 - Call Mors Mutual Insurance
+ Num0 + Num7 - Get heavy armor
+ Num0 + Num8 - Repeat button
+ Num0 + Num9 - Show/Hide crosshair
+ NumAdd - Spawn BST(Bull Shark Testosterone)
+ NumDiv - Toggle CEO Mode
+ NumSub - Buy ammo
+ LAlt - Fast heavy weapon reload
+ NumEnter - Fast EWO
+ NumDot - Get snack
+ RCtrl & RShift - Outfit fix
+ NumDot : Snacks
+ NumpadDiv : CEO Mode
+ NumpadMult : Show usage
+ Num0 + Num1 : Call Mechanic
+ Num0 + Num2 : Call Lester
+ Num0 + Num3 : Call MorsMutualAssurance
+ Num0 + Num4 : Call Assistant
+ Num0 + Num5 : Armor
+ Num0 + Num6 : Bribe Authority
+ Num0 + Num7 : Ghost organisation
+ Num0 + Num8 : Personal vehicle
+ Num0 + Num9 : Mk2
+ Num0 + NumAdd : Lower Wanted Level
+ RCtrl + RShift : Empty session


While in game, hitting NumpadMult will show the association between keys and actions :


<p align="center">
<img src="Usage.png" title="Usage">
</p>
Binary file added Usage.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed assets/crosshair.png
Binary file not shown.
Binary file added assets/vip-disabled.mp3
Binary file not shown.
Binary file added assets/vip-enabled.mp3
Binary file not shown.
65 changes: 27 additions & 38 deletions includes/conf.ahk
Original file line number Diff line number Diff line change
@@ -1,67 +1,56 @@
;
; Copyright (C) 2017 MacMailler
; GitHub: https://github.com/MacMailler/QuickMacro
;

Global SettingsFile := "QuickMacro.ini"

loadConf() {
IfExist, %SettingsFile%
{
IniRead, keyPhoneDalay, %SettingsFile%, Delays, KeyPhoneDalay
IniRead, keyPhoneDelay, %SettingsFile%, Delays, KeyPhoneDelay
IniRead, keyPhoneDuration, %SettingsFile%, Delays, KeyPhoneDuration
IniRead, phoneDelay, %SettingsFile%, Delays, PhoneDelay
IniRead, menuDelay, %SettingsFile%, Delays, MenuDelay
IniRead, keyMDelay, %SettingsFile%, Delays, KeyMDelay
IniRead, keyMDuration, %SettingsFile%, Delays, KeyMDuration
IniRead, RepeatButtonDelay, %SettingsFile%, Delays, RepeatButtonDelay
IniRead, heavyWeaponKey, %SettingsFile%, Keys, HeavyWeaponKey
IniRead, specialWeaponKey, %SettingsFile%, Keys, SpecialWeaponKey
IniRead, RepeatButton, %SettingsFile%, Keys, RepeatButton

IniRead, PegasusKey, %SettingsFile%, Hotkeys, PegasusKey

IniRead, MechanicKey, %SettingsFile%, Hotkeys, MechanicKey
IniRead, LesterKey, %SettingsFile%, Hotkeys, LesterKey
IniRead, BuzzardKey, %SettingsFile%, Hotkeys, BuzzardKey
IniRead, GhostKey, %SettingsFile%, Hotkeys, GhostKey
IniRead, MorsMutualKey, %SettingsFile%, Hotkeys, MorsMutualKey
IniRead, AssistantKey, %SettingsFile%, Hotkeys, AssistantKey
IniRead, ArmorKey, %SettingsFile%, Hotkeys, ArmorKey
IniRead, BribeKey, %SettingsFile%, Hotkeys, BribeKey
IniRead, GhostKey, %SettingsFile%, Hotkeys, GhostKey
IniRead, VehicleKey, %SettingsFile%, Hotkeys, VehicleKey
IniRead, Mk2Key, %SettingsFile%, Hotkeys, Mk2Key
IniRead, SnackKey, %SettingsFile%, Hotkeys, SnackKey
IniRead, BullsharkKey, %SettingsFile%, Hotkeys, BullsharkKey
IniRead, AmmoKey, %SettingsFile%, Hotkeys, AmmoKey
IniRead, ToggleCeoKey, %SettingsFile%, Hotkeys, ToggleCeoKey
IniRead, MorsMutualKey, %SettingsFile%, Hotkeys, MorsMutualKey
IniRead, FastHeavyReloadKey, %SettingsFile%, Hotkeys, FastHeavyReloadKey
IniRead, FastEwoKey, %SettingsFile%, Hotkeys, FastEwoKey
IniRead, RepeatButtonKey, %SettingsFile%, Hotkeys, RepeatButtonKey
IniRead, CrosshairKey, %SettingsFile%, Hotkeys, CrosshairKey
IniRead, OutfitFixKey, %SettingsFile%, Hotkeys, OutfitFixKey
IniRead, LowerWantedLevelKey, %SettingsFile%, Hotkeys, LowerWantedLevelKey
IniRead, EmptySessionKey, %SettingsFile%, Hotkeys, EmptySessionKey

IniRead, UsageKey, %SettingsFile%, Hotkeys, UsageKey

} else {
IniWrite, %keyPhoneDalay%, %SettingsFile%, Delays, KeyPhoneDalay
IniWrite, %keyPhoneDelay%, %SettingsFile%, Delays, KeyPhoneDelay
IniWrite, %keyPhoneDuration%, %SettingsFile%, Delays, KeyPhoneDuration
IniWrite, %phoneDelay%, %SettingsFile%, Delays, PhoneDelay
IniWrite, %menuDelay%, %SettingsFile%, Delays, MenuDelay
IniWrite, %keyMDelay%, %SettingsFile%, Delays, KeyMDelay
IniWrite, %keyMDuration%, %SettingsFile%, Delays, KeyMDuration
IniWrite, %RepeatButtonDelay%, %SettingsFile%, Delays, RepeatButtonDelay
IniWrite, %heavyWeaponKey%, %SettingsFile%, Keys, HeavyWeaponKey
IniWrite, %specialWeaponKey%, %SettingsFile%, Keys, SpecialWeaponKey
IniWrite, %RepeatButton%, %SettingsFile%, Keys, RepeatButton

IniWrite, %PegasusKey%, %SettingsFile%, Hotkeys, PegasusKey

IniWrite, %MechanicKey%, %SettingsFile%, Hotkeys, MechanicKey
IniWrite, %LesterKey%, %SettingsFile%, Hotkeys, LesterKey
IniWrite, %BuzzardKey%, %SettingsFile%, Hotkeys, BuzzardKey
IniWrite, %GhostKey%, %SettingsFile%, Hotkeys, GhostKey
IniWrite, %MorsMutualKey%, %SettingsFile%, Hotkeys, MorsMutualKey
IniWrite, %AssistantKey%, %SettingsFile%, Hotkeys, AssistantKey
IniWrite, %ArmorKey%, %SettingsFile%, Hotkeys, ArmorKey
IniWrite, %BribeKey%, %SettingsFile%, Hotkeys, BribeKey
IniWrite, %GhostKey%, %SettingsFile%, Hotkeys, GhostKey
IniWrite, %VehicleKey%, %SettingsFile%, Hotkeys, VehicleKey
IniWrite, %Mk2Key%, %SettingsFile%, Hotkeys, Mk2Key
IniWrite, %SnackKey%, %SettingsFile%, Hotkeys, SnackKey
IniWrite, %BullsharkKey%, %SettingsFile%, Hotkeys, BullsharkKey
IniWrite, %AmmoKey%, %SettingsFile%, Hotkeys, AmmoKey
IniWrite, %ToggleCeoKey%, %SettingsFile%, Hotkeys, ToggleCeoKey
IniWrite, %MorsMutualKey%, %SettingsFile%, Hotkeys, MorsMutualKey
IniWrite, %FastHeavyReloadKey%, %SettingsFile%, Hotkeys, FastHeavyReloadKey
IniWrite, %FastEwoKey%, %SettingsFile%, Hotkeys, FastEwoKey
IniWrite, %RepeatButtonKey%, %SettingsFile%, Hotkeys, RepeatButtonKey
IniWrite, %CrosshairKey%, %SettingsFile%, Hotkeys, CrosshairKey
IniWrite, %OutfitFixKey%, %SettingsFile%, Hotkeys, OutfitFixKey
IniWrite, %LowerWantedLevelKey%, %SettingsFile%, Hotkeys, LowerWantedLevelKey
IniWrite, %EmptySessionKey%, %SettingsFile%, Hotkeys, EmptySessionKey

IniWrite, %UsageKey%, %SettingsFile%, Hotkeys, UsageKey

}
}
}
28 changes: 0 additions & 28 deletions includes/crosshair.ahk

This file was deleted.

Loading