From e3c73f3fc19b00ed8da11479550f098814428910 Mon Sep 17 00:00:00 2001 From: Mar Alegre Date: Fri, 9 Apr 2021 03:55:21 -0400 Subject: [PATCH] made outer wilds into wrapper script --- src/Minecraft Bedrock Edition.ahk | 6 ++++++ src/Outer Wilds.ahk | 33 +++++++++++++++---------------- 2 files changed, 22 insertions(+), 17 deletions(-) diff --git a/src/Minecraft Bedrock Edition.ahk b/src/Minecraft Bedrock Edition.ahk index 94d9e1b..badc98c 100644 --- a/src/Minecraft Bedrock Edition.ahk +++ b/src/Minecraft Bedrock Edition.ahk @@ -14,6 +14,12 @@ WrapperPath:="shell:AppsFolder\Microsoft.MinecraftUWP_8wekyb3d8bbwe!App" WrapperWindow:="Minecraft" #Include ../lib/Wrapper.ahk +; Send an F4 to activate fullscreen +Sleep 1000 +Send {F4 down} +Sleep 100 +Send {F4 up} + ; ; Hotkeys ; diff --git a/src/Outer Wilds.ahk b/src/Outer Wilds.ahk index ca9a617..93dc55c 100644 --- a/src/Outer Wilds.ahk +++ b/src/Outer Wilds.ahk @@ -9,14 +9,16 @@ #Include ../lib/Prelude.ahk #Include ../lib/Stopwatch.ahk - -; Include - ; Include ViGEm library #Include ../thirdparty/AHK-ViGEm-Bus/AHK-ViGEm-Bus.ahk ; Create a new Xbox 360 controller MyXbox := new ViGEmXb360() +; Make this a wrapper script +WrapperPath:="steam://rungameid/753640" +WrapperWindow:="Outer Wilds" +#Include ../lib/Wrapper.ahk + ; Set percent to deflect by for fine controls Defl := 40 @@ -30,9 +32,6 @@ Gui, Show, NoActivate x0 y0, StopwatchGui WinSet, TransColor, Black 100, StopwatchGui StopwatchHide() -; Only do hotkeys if relevant window is active -#If WinActive("Outer Wilds") - ; ; Hotkeys ; @@ -41,20 +40,20 @@ StopwatchHide() ; Stopwatch ; -; Alt+F9: Show/Hide stopwatch -!F9::StopwatchToggleHidden() +; Alt+F1: Show/Hide stopwatch +!F1::StopwatchToggleHidden() -; F9: Reset stopwatch -F9::StopwatchReset() +; F1: Reset stopwatch +F1::StopwatchReset() -; F10: Start/stop stopwatch -F10::StopwatchToggle() +; F2: Start/stop stopwatch +F2::StopwatchToggle() -; F11: Rewind stopwatch 5 sec -F11::StopwatchRewind(5) +; F3: Rewind stopwatch 5 sec +F3::StopwatchRewind(5) -; F12: Fastforward stopwatch 5 sec -F12::StopwatchFastforward(5) +; F4: Fastforward stopwatch 5 sec +F4::StopwatchFastforward(5) ; ; Fine Controls @@ -69,7 +68,7 @@ MyXbox.Axes.LT.SetState(0) return ; Fine control is active when caps lock is on -#If WinActive("Outer Wilds") and GetKeyState("CapsLock","T") +#If GetKeyState("CapsLock","T") W::MyXbox.Axes.LY.SetState(50+Defl*.5) W UP::MyXbox.Axes.LY.SetState(50)