From 5f656d459c361c356ef206722b97400f007d3d77 Mon Sep 17 00:00:00 2001 From: Zjamnik Date: Tue, 13 Feb 2024 19:11:39 +0100 Subject: [PATCH] reenable ask to run game --- stratagems.ahk | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/stratagems.ahk b/stratagems.ahk index 67e091c..85641b6 100644 --- a/stratagems.ahk +++ b/stratagems.ahk @@ -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("ahk_exe helldivers2.exe")) { + 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") @@ -21,9 +21,9 @@ sendStratagem(keyname) { global recording := false HotIfWinactive("ahk_exe helldivers2.exe") 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 := ""