Skip to content

Commit

Permalink
fix: anki 631
Browse files Browse the repository at this point in the history
  • Loading branch information
snomiao committed Aug 26, 2022
1 parent cd30947 commit 483687a
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion Modules/应用-Anki增强.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,20 @@ AnkiUnlock(x)
;#UseHook On

; ANKI 2.0 and 2.1
#if CapsLockXMode && ( WinActive("Anki -.* ahk_class QWidget ahk_exe anki.exe") || WinActive("Anki - .*|.* - Anki ahk_class Qt5QWindowIcon ahk_exe anki.exe"))
#if CapsLockXMode && AnkiWindowActiveQ()

AnkiWindowActiveQ(){
if(WinActive("Anki -.* ahk_class QWidget ahk_exe anki.exe")){
return 1
}
if( WinActive("Anki - .*|.* - Anki ahk_class Qt5QWindowIcon ahk_exe anki.exe")){
return 1
}
if( WinActive("Anki - .*|.* - Anki ahk_class Qt631QWindowIcon ahk_exe anki.exe")){
return 1
}
return 0
}

; DEPRECATED -- USE .md please
/:: CapsLockX_ShowHelp("
Expand Down

0 comments on commit 483687a

Please sign in to comment.