Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error message appears when opening new app #169

Open
JTH25 opened this issue Jun 29, 2023 · 1 comment
Open

Error message appears when opening new app #169

JTH25 opened this issue Jun 29, 2023 · 1 comment

Comments

@JTH25
Copy link

JTH25 commented Jun 29, 2023

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

;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}")
}

@TaranVH
Copy link
Owner

TaranVH commented Jun 29, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants