Browse Source

made outer wilds into wrapper script

ahk-v1
Mar Alegre 4 years ago
parent
commit
e3c73f3fc1
  1. 6
      src/Minecraft Bedrock Edition.ahk
  2. 33
      src/Outer Wilds.ahk

6
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
;

33
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)

Loading…
Cancel
Save