From c4041f2cb84cdbd879b05eae978756f1056e1661 Mon Sep 17 00:00:00 2001 From: Mar Alegre Date: Sun, 15 Nov 2020 15:13:19 -0500 Subject: [PATCH] removed alt+wheel and GUI functionality from Outer Wilds script --- src/Outer_Wilds.ahk | 44 +------------------------------------------- 1 file changed, 1 insertion(+), 43 deletions(-) diff --git a/src/Outer_Wilds.ahk b/src/Outer_Wilds.ahk index ca90b5b..00a87aa 100644 --- a/src/Outer_Wilds.ahk +++ b/src/Outer_Wilds.ahk @@ -13,38 +13,9 @@ ; Create a new Xbox 360 controller MyXbox := new ViGEmXb360() -; Settings -SetTitleMatchMode,2 -DetectHiddenWindows,On - ; Set percent to deflect by for fine controls Defl := 40 -; Create Gui to show deflection percent -Gui, +AlwaysOnTop -Caption +ToolWindow -Gui, Margin, 0, 0 -Gui, Font, s20 CWhite -Gui, Color, Black -Gui, Add, Text, vMyGuiText +Center, Fine Controls: 100`% -Gui, Show, NoActivate, OuterWildsAhkGui -WinSet, TransColor, Black, OuterWildsAhkGui - -DrawGui: -MyGuiTime = 10 -SetTimer, UpdateGui, 100 - -UpdateGui: -If (MyGuiTime != 0) { - Gui, Show, NoActivate - GuiControl, Text, MyGuiText, Fine Controls: %Defl%`% - MyGuiTime-- - If (MyGuiTime == 0) { - Gui, Hide - SetTimer, UpdateGui, Off - } -} -return - ; Only do hotkeys if relevant window is active #IfWinActive, Outer Wilds @@ -66,9 +37,6 @@ MyXbox.Axes.LY.SetState(50) MyXbox.Axes.LX.SetState(50) MyXbox.Axes.RT.SetState(0) MyXbox.Axes.LT.SetState(0) -If GetKeyState("CapsLock","T") { - Goto DrawGui -} return ; Fine control is active when caps lock is on @@ -90,14 +58,4 @@ Space::MyXbox.Axes.RT.SetState(Defl*.16) Space UP::MyXbox.Axes.RT.SetState(0) Shift::MyXbox.Axes.LT.SetState(Defl*.16) -Shift UP::MyXbox.Axes.LT.SetState(0) - -; Alt+Scroll changes deflect percent -*!WheelUp:: -Defl := Min(Defl + 5,100) -Goto DrawGui -return -*!WheelDown:: -Defl := Max(Defl - 5,0) -Goto DrawGui -return \ No newline at end of file +Shift UP::MyXbox.Axes.LT.SetState(0) \ No newline at end of file