I'm running
ProcessName:=WinGetProcessName("A")
The code sometimes gives error: Target Window not found.
I checked the documentation, but failed to find related information.
When does this error happen? How do I deal with it? Is it documented anywhere?
I'm using Autohotkey v2 a112.
Error: Target Window not found Topic is solved
Re: Error: Target Window not found
I think the documentation is just not up to-date and that this is the expected behaviour. Use try or winexist.
Cheers.
Cheers.
Re: Error: Target Window not found Topic is solved
This occurs when there is no active window (or the active window is not "found" because DetectHiddenWindows is false).
Re: Error: Target Window not found
Thank all you guys.