Compare commits

...

10 Commits

Author SHA1 Message Date
zjamnik 8a823e763c win active detection fix 2024-02-16 19:57:44 +01:00
zjamnik 73d7530204 sequence 2024-02-15 22:32:18 +01:00
zjamnik 0cd15866ec orbital gas strike 2024-02-15 20:29:03 +01:00
zjamnik eab9ce31af grenada 2024-02-14 21:51:24 +01:00
zjamnik 7348df9849 new stratagems 2024-02-14 20:48:29 +01:00
zjamnik dac4462fb4 unlocked icons 2024-02-14 13:00:15 +01:00
zjamnik 196349046d close while minimized fix 2024-02-13 19:19:36 +01:00
zjamnik 5f656d459c reenable ask to run game 2024-02-13 19:11:39 +01:00
zjamnik 6f502181f8 hotkey change 2024-02-13 03:14:34 +01:00
zjamnik d546f6b2d2 hotkey change 2024-02-13 03:12:28 +01:00
21 changed files with 23 additions and 21 deletions
Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.0 KiB

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.9 KiB

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.6 KiB

After

Width:  |  Height:  |  Size: 6.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.0 KiB

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.0 KiB

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.1 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.1 KiB

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.0 KiB

After

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.5 KiB

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 KiB

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.5 KiB

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.0 KiB

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 3.7 KiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.1 KiB

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.6 KiB

After

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 3.3 KiB

+18 -16
View File
@@ -2,13 +2,13 @@
SendMode "Event"
SetKeyDelay 100, 50
; if ( not WinExist("ahk_exe helldivers2.exe")) {
; runResult := MsgBox("Do you want to start the game?", "Run Helldivers 2?", "292 T10")
if ( not WinExist("HELLDIVERS™ 2")) {
runResult := MsgBox("Do you want to start the game?", "Run Helldivers 2?", "292 T10")
; if (runResult = "yes") {
; Run("steam://rungameid/553850")
; }
; }
if (runResult = "yes") {
Run("steam://rungameid/553850")
}
}
sendStratagem(keyname) {
BlockInput("On")
@@ -19,11 +19,11 @@ sendStratagem(keyname) {
; Loadout recorder
global recording := false
HotIfWinactive("ahk_exe helldivers2.exe")
HotIfWinactive("HELLDIVERS™ 2")
Hotkey("~Space", recorderHotkey, "Off")
Hotkey("~w", recorderHotkey, " Off ")
Hotkey("~s", recorderHotkey, " Off ")
Hotkey("~a", recorderHotkey, " Off ")
Hotkey("~w", recorderHotkey, "Off")
Hotkey("~s", recorderHotkey, "Off")
Hotkey("~a", recorderHotkey, "Off")
Hotkey("~d", recorderHotkey, "Off")
global loadoutSequence := ""
@@ -31,8 +31,8 @@ recorderHotkey(keypressed) {
global loadoutSequence .= keypressed = "~Space" ? "x" : StrSplit(keypressed, "~")[2]
}
#HotIf WinActive("ahk_exe helldivers2.exe")
[:: {
#HotIf WinActive("HELLDIVERS™ 2")
!]:: {
if (recording) {
Hotkey("~Space", , "Off")
Hotkey("~w", , "Off")
@@ -64,7 +64,7 @@ recorderHotkey(keypressed) {
}
; Delete current loadout
^[:: {
![:: {
delValue("LOADOUTS", getValue("WINDOW", "CurrentLoadout"))
changeLoadout(1)
}
@@ -173,7 +173,7 @@ changeLoadout(offset) {
loop parse, IniRead(configPath, "HOTKEYS"), "`n" {
hotkeyPair := StrSplit(A_LoopField, "=")
HotIfWinactive("ahk_exe helldivers2.exe")
HotIfWinactive("HELLDIVERS™ 2")
Hotkey(hotkeyPair[1], sendStratagem)
}
@@ -190,8 +190,10 @@ loop parse, IniRead(configPath, "HOTKEYS"), "`n" {
MyGui_Close(*) {
SetNumLockState(orgNumlockState = 0 ? "Off" : "On")
MyGui.GetPos(&guiX, &guiY)
setValue("WINDOW", "X", guiX)
setValue("WINDOW", "Y", guiY)
if ( not guiX = -32000 and not guiY = -32000) {
setValue("WINDOW", "X", guiX)
setValue("WINDOW", "Y", guiY)
}
ExitApp(0)
}
+5 -5
View File
@@ -3,7 +3,7 @@ AntiMaterielRifle=sadws
AntiPersonnelMinefield=sawd
ArcThrower=
Autocannon=saswwd
AutocannonSentry=
AutocannonSentry=swdwaw
BallisticShieldBackpack=
EMSMortarSentry=
Eagle110MMRocketPods=wdwa
@@ -17,14 +17,14 @@ EagleStrafingRun=wdd
ExpendableAntiTank=ssawd
Flamethrower=
GatlingSentry=swda
GrenadeLauncher=
GrenadeLauncher=sawas
GuardDog=swawds
GuardDogRover=swawdd
HMGEmplacement=swadda
Hellbomb=swaswdsw
IncendiaryMines=
IncendiaryMines=saas
JumpPack=swwsw
LaserCannon=
LaserCannon=saswa
MachineGun=saswd
MachineGunSentry=swddw
MortarSentry=swdds
@@ -32,7 +32,7 @@ Orbital120MMHEBarrage=ddsads
Orbital380MMHEBarrage=dswwass
OrbitalAirburstStrike=ddd
OrbitalEMSStrike=
OrbitalGasStrike=
OrbitalGasStrike=ddsd
OrbitalGatlingBarrage=dsaww
OrbitalIlluminationFlare=ddaa
OrbitalLaser=dswds