summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbreadcat2020-11-14 11:21:22 +0000
committerbreadcat2020-11-14 11:21:22 +0000
commitb2b672a229f8ed2c70ead26959a73e700607f42f (patch)
tree1141786d2ce7cbc1dd3b0a1f41ba6bc72987659c
parent8106bb18ca313d1734d89a5d85222676726e8f8a (diff)
downloadahka-b2b672a229f8ed2c70ead26959a73e700607f42f.tar.gz
ahka-b2b672a229f8ed2c70ead26959a73e700607f42f.tar.bz2
ahka-b2b672a229f8ed2c70ead26959a73e700607f42f.zip
Merge calculator ifs
-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