Jump to content

PID 2 HWND handle ?


Recommended Posts

If you know the PID and need the handle, here's how I would do it.

Func _PIDtoHandle($pid)
    $var = WinList()
    For $i = 1 to $var[0][0]
        If WinGetProcess($var[$i][0]) = $pid Then Return $var[$i][1]
    Next
EndFunc
Edited by spudw2k
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...