How to read external application fields values
-
Dear All, I have an application which i want to integrate with other applications. My application will be running all the time (running on the tray icon) . I have implemented the keyboard hooking to catch a hot key F1 for exmple and call my application. What i need is to read a field value from the external applicaion and call my application passing that value as a parameter (Command()...) Please give me key about where to look :) Thanks in advance
Best Regards 3ala2 :)
-
Dear All, I have an application which i want to integrate with other applications. My application will be running all the time (running on the tray icon) . I have implemented the keyboard hooking to catch a hot key F1 for exmple and call my application. What i need is to read a field value from the external applicaion and call my application passing that value as a parameter (Command()...) Please give me key about where to look :) Thanks in advance
Best Regards 3ala2 :)
This is not easy. Unless the applications expose this information in an API (not many do), you're going to find this a huge pain. You have to get the window handle of the window that holds the control you want to get the value from. Then you have to go through the controls, an possibly container controls, to find the control you want, then send a WM_GETTEXT message to the control and get the value back. The problem is, there's no guarantee that the control in question will respond to the message!
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008