From 77b66064eb2b59f809e5e4d4cd87bf19e1326c5b Mon Sep 17 00:00:00 2001 From: Sameera Sandakelum <68902530+sameerasw@users.noreply.github.com> Date: Thu, 18 May 2023 01:36:47 +0530 Subject: [PATCH] more cleaning --- MacroNumberKeys.ahk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MacroNumberKeys.ahk b/MacroNumberKeys.ahk index 43dcb4d..e6287da 100644 --- a/MacroNumberKeys.ahk +++ b/MacroNumberKeys.ahk @@ -1,8 +1,8 @@ ;===================================func=================================== ;edge -edge_func(key,shortcut1,shortcut2) +edge_func(key,shortcut1,shortcut2,app="ahk_exe msedge.exe") { - IfWinActive ahk_exe msedge.exe + IfWinActive %app% { keywait, %key%, T0.4 err := Errorlevel