Jump to content
Sign in to follow this  
gzken

how to get a window handle through a PID?

Recommended Posts

gzken

i have got a PID and i knew that the process was a GUI program, can i get the window's handle through the process ID? any function can do this? thanks.

Share this post


Link to post
Share on other sites
erezlevi

i have got a PID and i knew that the process was a GUI program, can i get the window's handle through the process ID? any function can do this? thanks.

try this:

$LParam=@autoitpid

$iPID = Number($LParam);

$iPID should hold the Handler

Share this post


Link to post
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
Sign in to follow this  

×