I need to get handle information i can use for a window, but i only have the process id to work with. Any ideas?
$pid = WinGetProcess("[CLASS:Notepad]")
$handle = WinGetHandle($pid, "")
ConsoleWrite($pid & @CRLF)
ConsoleWrite($handle & @CRLF)
Is an example that doesn't work but should show what i am after.