Skip to content

Commit

Permalink
Some checks in place when AutoCycling to try and prevent strange prob…
Browse files Browse the repository at this point in the history
…lems if the GUI is closed during the process.
  • Loading branch information
CemuUser8 committed Jun 6, 2017
1 parent 31cb7c5 commit 03c3352
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions mouse2joystick_Custom_CEMU.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -1742,6 +1742,8 @@ Return

CancelButton:
KeyHelperGUIClose:
IF (setToggle)
Return
Hotkey, IF, KeyHelperRunning(setToggle)
HotKey,~LButton, getControl, Off
Hotkey, IF
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 03c3352

Please sign in to comment.