Jump to content

Recommended Posts

Posted (edited)

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

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
×
×
  • Create New...