From 03c335267c14c18f4b8452a8585bc2613ee3f42c Mon Sep 17 00:00:00 2001 From: Cemu User8 Date: Tue, 6 Jun 2017 09:12:18 -0400 Subject: [PATCH] Some checks in place when AutoCycling to try and prevent strange problems if the GUI is closed during the process. --- mouse2joystick_Custom_CEMU.ahk | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mouse2joystick_Custom_CEMU.ahk b/mouse2joystick_Custom_CEMU.ahk index 2d99fa6..c2e57f9 100644 --- a/mouse2joystick_Custom_CEMU.ahk +++ b/mouse2joystick_Custom_CEMU.ahk @@ -1742,6 +1742,8 @@ Return CancelButton: KeyHelperGUIClose: + IF (setToggle) + Return Hotkey, IF, KeyHelperRunning(setToggle) HotKey,~LButton, getControl, Off Hotkey, IF @@ -1779,12 +1781,16 @@ Return AutoLoop: GUI, KeyHelper:Default + Loop 4 + GUIControl, +Disabled, Button%A_Index% setToggle := True Loop 17 { useControl := "Edit" . A_Index GetKey() } setToggle := False + Loop 4 + GUIControl, -Disabled, Button%A_Index% GoSub, clearFocus MsgBox, Done Return