You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I configured to use Win + Tab to cycle around desk tops (as I figure it should have been in the first place like Alt+Tab ), but original desktop manager function is still useful to me.
However, since I already used win + tab as hotkey, I can't simply re-map it to something else like #41 did.
So is there anyway to call original desktop manager other than using win + tab that can be included in the script?
Sorry for the possible noob question tho.
The text was updated successfully, but these errors were encountered:
I tried using timer to track key holding time and send output accordingly, but it seems the Win+Tab hotkey is processed in a way that is easily compromised while mannually send key stroke with script.
I turned to us Alt+Q as trigger, but still open to opinions.
Here are some of the examples I tried with the help of ChatGPT, but none of them really works as intended.
; Define the hold duration threshold (in milliseconds)
HoldThreshold := 500 ; 0.5 second
; Variable to track if the combination is held
isHeld := false
; Detect when Win + Tab is pressed
#Tab::
isHeld := false
StartTime := A_TickCount
SetTimer, CheckHold, % HoldThreshold
return
; Timer to check if the key is held beyond the threshold
CheckHold:
if (GetKeyState("LWin", "P") && GetKeyState("Tab", "P")) {
isHeld := true
}
SetTimer, CheckHold, Off
return
; Handle key release
#Tab Up::
; If the combination is held, let Windows handle it without interference
if (isHeld) {
; Explicitly bypass the script and let Task View handle the key
Send, {LWin Up}{Tab Up}
return
} else {
; Short press action
switchDesktopToRight() ; Your custom function
}
return
I configured to use
Win + Tab
to cycle around desk tops (as I figure it should have been in the first place likeAlt+Tab
), but original desktop manager function is still useful to me.However, since I already used
win + tab
as hotkey, I can't simply re-map it to something else like #41 did.So is there anyway to call original desktop manager other than using
win + tab
that can be included in the script?Sorry for the possible noob question tho.
The text was updated successfully, but these errors were encountered: