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

Get help with using AutoHotkey (v2 or newer) and its commands and hotkeys
chinagreenelvis
Posts: 133
Joined: 19 Oct 2015, 16:21

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

Post by chinagreenelvis » 27 Mar 2024, 01:18

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...

chinagreenelvis
Posts: 133
Joined: 19 Oct 2015, 16:21

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

Post by chinagreenelvis » 27 Mar 2024, 01:30

Nevermind, I see in the documentation for v2 there is &OutputVarPID in the run command.

Post Reply

Return to “Ask for Help (v2)”