![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Nov 2004
Posts: 1
Rep Power: 0
![]() |
Hi all,
I'm trying to write a program that will be able to read text boxes in another program. I did not write the other program, but I would like to be able to read input from it for mine. Looking around, I found the FindWindow() function, so I have the program's HWND. I'm not too familiar with Win32 though, so I'm not sure what to do next. It seems like this should be pretty simple. Ideally, I would like to get notified evertime the text in the other textbox changes, so I can record the changes. If not, just a way to find what's in it at any given time would work well too. Thanks all. |
|
|
|
|
|
#2 |
|
Expert Programmer
|
I do not think you can really get notified of that, unless you are talking about waiting for changes from some type of actual input field. To do this you would need to find a way to receive a copy of all windows messages to your current program's message pump (I can not remember off the top of my head how this is done, but I do recall it beinf very simple).... and filter out the messages against the HWND handle you have. Look for the proper message corresponding to the event that you want.
__________________
Clifford Matthew Roche <geek@cliffordroche.com> Web Hosting: http://www.crd-hosting.com Consulting: http://www.crdev-consulting.com |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|