Page 1 of 1

Getting the ID of a window created from running a .bat file?

Posted: 27 Mar 2024, 01:18
by chinagreenelvis
I'm trying to figure out how to get the unique ID of the window that is made when AHK uses the run command pointing to a batch file. I'm anticipating circumstances in which other command windows may also be running and possibly active at the time, so just getting the active window or ahk_exe cmd.exe isn't quite good enough...

Re: Getting the ID of a window created from running a .bat file?  Topic is solved

Posted: 27 Mar 2024, 01:30
by chinagreenelvis
Nevermind, I see in the documentation for v2 there is &OutputVarPID in the run command.