Open JTH25 opened 1 year ago
try using the class for some of those. on my machine, it's ahk_class XLMAIN ahk_exe EXCEL.EXE
On Thu, Jun 29, 2023 at 9:08 AM JTH25 @.***> wrote:
Error message comes up when opening new app. The app opens despite this, but the error message adds unnecessary clutter. Any idea how to get rid of this? Example below uses excel launch script.
Error: Target window not found.
Specifically: ahk_exe excel.exe
057: SendInput("^{tab}") 058: Else
▶ 059: WinActivate("ahk_exe excel.exe") 060: SendInput("{Esc}") 061: }
[image: image] https://user-images.githubusercontent.com/80353808/249835182-173a894e-a8fe-4f8f-b123-5386ae58df51.png
;Actual script:
^NumPad5:: { if !WinExist("ahk_exe excel.exe") Run("excel.exe")
if WinActive("ahk_exe excel.exe") SendInput("^{tab}") else WinActivate("ahk_exe excel.exe") SendInput("{Esc}") }
— Reply to this email directly, view it on GitHub https://github.com/TaranVH/2nd-keyboard/issues/169, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD2MGX5G5SU2ZH6GEMCISULXNWSA3ANCNFSM6AAAAAAZYXJAGE . You are receiving this because you are subscribed to this thread.Message ID: @.***>
Error message comes up when opening new app. The app opens despite this, but the error message adds unnecessary clutter. Any idea how to get rid of this? Example below uses excel launch script.
Error: Target window not found.
Specifically: ahk_exe excel.exe
▶ 059: WinActivate("ahk_exe excel.exe") 060: SendInput("{Esc}") 061: }
;Actual script:
^NumPad5:: { if !WinExist("ahk_exe excel.exe") Run("excel.exe")
if WinActive("ahk_exe excel.exe") SendInput("^{tab}") else WinActivate("ahk_exe excel.exe") SendInput("{Esc}") }