Skip to content

Commit

Permalink
fix: 退出 CLX 模式/进入 CLX 模式 的悬浮小提示自动消失
Browse files Browse the repository at this point in the history
  • Loading branch information
snomiao committed Aug 21, 2021
1 parent 065130b commit 2f40c35
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Core/CapslockX-Core.ahk
Expand Up @@ -218,6 +218,7 @@ CapsLockX_Dn(){
if(CapsLockXMode & CM_CapsLockX){
; TrayTip CapsLockX, 退出CLX模式
ToolTip 退出CLX模式
SetTimer CLX_HideToolTips, 1000
CapsLockXMode &= ~CM_CapsLockX
}
CapsLockXMode |= CM_FN
Expand All @@ -229,6 +230,7 @@ CapsLockX_Dn(){
; CLX_Locked = 1
; TrayTip CapsLockX, 进入CLX模式
ToolTip 进入CLX模式
SetTimer CLX_HideToolTips, 1000
CapsLockXMode |= CM_CapsLockX
KeyWait, %waitKey%, T60 ; wait for 60 seconds, prevent flashing the quit and enter message

Expand Down Expand Up @@ -291,3 +293,8 @@ RunAsLimitiedUser(CMD, WorkingDir){
CapsLockX_NotAvaliable:
TrayTip, CapsLockX, NotAvaliable
Return

CLX_HideToolTips(){
ToolTip
SetTimer CLX_HideToolTips, Off
}

0 comments on commit 2f40c35

Please sign in to comment.