Sign in to follow this  
Followers 0
dem3tre

How to get window associated with a process?

6 posts in this topic

#1 ·  Posted (edited)

Is it possible to determine what window(s) are associated with a given process? Here's my situation - I have a process that kicks off whose title is randomized (don't ask why - it aint my code). The one thing I do have is its PID since the process name doesn't change of course.

EDIT: forgot to mention its basically a console application so there aren't any specific controls that i could look for by enumerating all the windows.

I'd love to be able to hide this sucker when it pops up.

Any ideas?

Thanks!

Edited by dem3tre

Share this post


Link to post
Share on other sites



Hmm, thanks for the suggestion but not what I'm looking for, though I do hope to use that function :)

The problem is that I don't have a handle to the window in question and cannot do a simple text search to find it. All I have is the PID of the running process.

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

So, are you trying to find a way to identify what windows are using a certain process?

Edited by BALA

[font="Comic Sans MS"]BA-LA[/font]http://ba-la.110mb.comJoin my community, CLICK HEREAlternative links to my site:http://www.ba-la.tkhttp://www.ba-la.co.nrContact me if you would like to help with some of my projects: joeythepirate@gmail.com

Share this post


Link to post
Share on other sites

WinList + WinGetProcess, or http://www.autoitscript.com/fileman/users/Helge/udfs/_ProcessGetHWnd.au3.

Share this post


Link to post
Share on other sites

Sweet! Thanks!

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  
Followers 0