Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Get the main window handle by PID
#1
I would like to obtain the main window handle using a PID. Is there a simple way to achieve this in QM?
The following code does not work.

Macro T
 
Code:
Copy      Help
out

int i=4696
out win("" "" "" 0 F"threadId={i}")
 
PowerShell implementation code: 
Quote:(Get-Process -Id 4696).MainWindowHandle


Messages In This Thread
Get the main window handle by PID - by Davider - 03-02-2026, 10:35 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)