Danmilkman Posted May 19, 2004 Posted May 19, 2004 Hi y'all, First of all, my programming languagesuite is .NET. Here's my problem: I'm tryin' to find out de windowhandles from the window generated from a parent application. MSN Messenger is an excellent example. The parent application is msnmsgr.exe and start a main window with your contacts listed. When clickin' on a contact you get a new window. I want to find this windowhandle without havin' to click on it. Now on to my application. I'm starting MSN Messenger as a process from my own application (NOT shell) and the process starts with a unique processID. When clickin' on a contact the new window get the same processID but a different windowhandle. How can I get this from code? Is this possible and if so, how? Pleaze help, Thnx. D@n. Quote Intellectuals solve problems, geniuses prevent them!
CattleRustler Posted May 23, 2004 Posted May 23, 2004 could you iterate the forms collection, finding the active window, then get the handle property? I know each form has a me.handle as an IntPtr value Quote mod2software Home of the VB.NET Class Builder Utility - Demo and Full versions available now!
mooman_fl Posted May 23, 2004 Posted May 23, 2004 Ok... call me dense. Are you wanting to do this for windows within your own application or in another running application? The method is a bit different for each. Quote "Programmers are tools for converting caffeine into code." Madcow Inventions -- Software for the Sanity Challenged.
Danmilkman Posted June 1, 2004 Author Posted June 1, 2004 Ok... call me dense. Are you wanting to do this for windows within your own application or in another running application? The method is a bit different for each. To be short: I want to do this from another application like MSN Messenger. My own application starts by example MSN Messenger as a process. MSN generates windows when starting a conversation. These are not available in my windows collection in my own application... Or are they? Quote Intellectuals solve problems, geniuses prevent them!
Danmilkman Posted June 1, 2004 Author Posted June 1, 2004 could you iterate the forms collection' date=' finding the active window, then get the handle property? I know each form has a me.handle as an IntPtr value[/quote'] That is possible, but the windows generated are from another application, not my own. Quote Intellectuals solve problems, geniuses prevent them!
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.