summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ahk-assistant.ahk6
1 files changed, 1 insertions, 5 deletions
diff --git a/ahk-assistant.ahk b/ahk-assistant.ahk
index fa0cf6a..bee34a2 100644
--- a/ahk-assistant.ahk
+++ b/ahk-assistant.ahk
@@ -119,11 +119,7 @@ Insert::appendClipboard()
Return
#If
-#IfWinActive ahk_class SciCalc ; windows xp calc
- CapsLock::Send !{F4} ; quit
-#IfWinActive
-
-#IfWinActive ahk_class CalcFrame ; windows 7 calc
+#If WinActive("ahk_class SciCalc") or WinActive("ahk_class CalcFrame") ; windows xp or windows 7 calculator
CapsLock::Send !{F4} ; quit
#IfWinActive