Skip to content

Commit

Permalink
Wait for mount menu
Browse files Browse the repository at this point in the history
  • Loading branch information
moritztim authored Mar 8, 2023
1 parent 35e076a commit d861197
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion HLRemount.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,13 @@ lastMount := 3 ; broom by default

; Remount the last used mount when the "b" key is pressed
~b::
KeyWait, b, T0.35 ; check if the key is held down
KeyWait, b, T0.4 ; check if the key is held down
If ErrorLevel {
KeyWait, b, U ; prevent another check on the same press
Return
} Else {
Send, {Tab down}
Sleep, 450 ; the magic number
Send, %lastMount% ; remount
Send, {Tab up}
}
Expand Down

0 comments on commit d861197

Please sign in to comment.