From b2b672a229f8ed2c70ead26959a73e700607f42f Mon Sep 17 00:00:00 2001 From: breadcat Date: Sat, 14 Nov 2020 11:21:22 +0000 Subject: Merge calculator ifs --- ahk-assistant.ahk | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'ahk-assistant.ahk') 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 -- cgit v1.2.3