tracking pids of multiple windows ran at same time for a window management display

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
MarkBlart
Posts: 5
Joined: 25 Sep 2022, 17:36

tracking pids of multiple windows ran at same time for a window management display

01 Mar 2023, 21:20

Hello, I am making an application that tracks multiple windows of the same application.

The windows that I am running have an initial "Loading" window that pops up when running the app.

I know I can get the PID of each window buy doing something like this:

Code: Select all

RUN, %ComSpec% /c %ProgramPath%,,Hide, ProgramProc
The thing is after the loading window the main apps window has a new PID

Id like to avoid launching each window one by one and doing

Code: Select all

WinWait, %Window%
to get the programs window name tracking the PID that way

Is there a way to launch all the windows at once and track the PID from the loading screen PID to the main windows PID?

I need this so I can have a gui window that shows:

Program1: Running
Program2: Running
Program3: Running
Program4: Running

and then say if one window closes it'll say:

Program1: Not running
Program2: Running
Program3: Running
Program4: Running

it would ideally use a settimer to keep track of the running windows or if there is some better way please let me know I'm excited to hear some input from others about my project

Also I haven't switched over to ahk version 2 yet I am still on the previous latest version

[Mod edit: Topic moved to v1 help.]

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Bing [Bot], HiSoKa and 91 guests