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