Skip to content

Commit

Permalink
fix: prevent recursive triggering no matter what
Browse files Browse the repository at this point in the history
  • Loading branch information
xayanide committed Oct 22, 2024
1 parent 83b40d4 commit 0bd1ed3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions heldrapidclicker.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ onMacroToggle(*)
; Define the left mouse button ("~LButton") as a hotkey
; This means when the user presses the left mouse button,
; the function onUserLeftMouseButtonPress will be executed
Hotkey("~LButton", onUserLeftMouseButtonPress, "On")
Hotkey("~$LButton", onUserLeftMouseButtonPress, "On")
; I will just early return here, I don't like using else statements sometimes lol
return
}
Expand All @@ -201,7 +201,7 @@ onMacroToggle(*)
; If the macro is now toggled OFF
; Suspend (disable) the left mouse button hotkey
; This stops onUserLeftMouseButtonPress from running when the user clicks the left mouse button
Hotkey("~LButton", onUserLeftMouseButtonPress, "Off")
Hotkey("~$LButton", onUserLeftMouseButtonPress, "Off")
}

; Displays a neat startup message box with the applied settings
Expand Down
2 changes: 1 addition & 1 deletion old-rapid-clicker.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ isMacroToggle := false
}

; Left mouse button is pressed
~LButton::
~$LButton::
{
global isMacroToggle
; Macro is disabled, do nothing
Expand Down

0 comments on commit 0bd1ed3

Please sign in to comment.