From 6b7edb7ce8766c7b79451142435cb353863bfa07 Mon Sep 17 00:00:00 2001 From: Nickiel12 <35903114+Nickiel12@users.noreply.github.com> Date: Fri, 31 Dec 2021 19:35:04 -0800 Subject: [PATCH] added from hotkey checks --- ahk_files/propre_send.ahk | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/ahk_files/propre_send.ahk b/ahk_files/propre_send.ahk index 8521d22..980394a 100644 --- a/ahk_files/propre_send.ahk +++ b/ahk_files/propre_send.ahk @@ -8,10 +8,19 @@ SetTitleMatchMode, Fast If WinExist(A_Args[1]) ; propresenter { ; if propresenter isn't active, switch and send clicker forward - if !WinActive(A_Args[1]){ - WinActivate - sleep 200 + if (A_Args[3]) { ; 1 for from_hotkey 0 for from app + if !WinActive(A_Args[1]){ + WinActivate + sleep 200 + arg := A_Args[2] + Send {%arg%} + } + } else { + if !WinActive(A_Args[1]){ + WinActivate + sleep 200 + } + arg := A_Args[2] + Send {%arg%} } - arg := A_Args[2] - Send {%arg%} } \ No newline at end of file