Browse Source

removed alt+wheel and GUI functionality from Outer Wilds script

ahk-v1
Mar Alegre 5 years ago
parent
commit
c4041f2cb8
  1. 42
      src/Outer_Wilds.ahk

42
src/Outer_Wilds.ahk

@ -13,38 +13,9 @@
; Create a new Xbox 360 controller ; Create a new Xbox 360 controller
MyXbox := new ViGEmXb360() MyXbox := new ViGEmXb360()
; Settings
SetTitleMatchMode,2
DetectHiddenWindows,On
; Set percent to deflect by for fine controls ; Set percent to deflect by for fine controls
Defl := 40 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 ; Only do hotkeys if relevant window is active
#IfWinActive, Outer Wilds #IfWinActive, Outer Wilds
@ -66,9 +37,6 @@ MyXbox.Axes.LY.SetState(50)
MyXbox.Axes.LX.SetState(50) MyXbox.Axes.LX.SetState(50)
MyXbox.Axes.RT.SetState(0) MyXbox.Axes.RT.SetState(0)
MyXbox.Axes.LT.SetState(0) MyXbox.Axes.LT.SetState(0)
If GetKeyState("CapsLock","T") {
Goto DrawGui
}
return return
; Fine control is active when caps lock is on ; Fine control is active when caps lock is on
@ -91,13 +59,3 @@ Space UP::MyXbox.Axes.RT.SetState(0)
Shift::MyXbox.Axes.LT.SetState(Defl*.16) Shift::MyXbox.Axes.LT.SetState(Defl*.16)
Shift UP::MyXbox.Axes.LT.SetState(0) 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
Loading…
Cancel
Save