Want to listen an event of other application
-
Hello, I have an application (application1.exe) which do shows an popup at spicific event. I want to create an application that will be able to hearing for application1.exe. when the event is occure I want to get the popup information into my application. I want just clue, How will I do this? I hope someone GURU will guide me. Regards nidostyle
-
Hello, I have an application (application1.exe) which do shows an popup at spicific event. I want to create an application that will be able to hearing for application1.exe. when the event is occure I want to get the popup information into my application. I want just clue, How will I do this? I hope someone GURU will guide me. Regards nidostyle
Unless the app exposes some kind of external notification system, there is no event that you can listen for. The only possibility you have is using Windows Hooks, I believe the CBT hook specifically, and watch for the pop up window to be created. But, this is NOT a trivial thing to do. Then, getting the data from that window is the next difficult task. How you do this depends on the window, how it's structured, and if the controls it hosts responds to the WM_GETTEXT message. You might want to Google for "WM_GETTEXT" for examples.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008