dem3tre Posted January 14, 2007 Posted January 14, 2007 (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 January 14, 2007 by dem3tre
BALA Posted January 14, 2007 Posted January 14, 2007 Use GUISetState(@SW_HIDE) to hide the window. [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
dem3tre Posted January 14, 2007 Author Posted January 14, 2007 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.
BALA Posted January 14, 2007 Posted January 14, 2007 (edited) So, are you trying to find a way to identify what windows are using a certain process? Edited January 14, 2007 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
Helge Posted January 14, 2007 Posted January 14, 2007 WinList + WinGetProcess, or http://www.autoitscript.com/fileman/users/Helge/udfs/_ProcessGetHWnd.au3.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now