Jump to content
Sign in to follow this  
Digisoul

PID 2 HWND handle ?

Recommended Posts

Digisoul

Hi there,

How can I get any HWND handle with help of any processs PID ?


73 108 111 118 101 65 117 116 111 105 116

Share this post


Link to post
Share on other sites
spudw2k

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

Share this post


Link to post
Share on other sites
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
Sign in to follow this  

×