Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Nov 13th, 2004, 9:19 PM   #1
JackPirate
Newbie
 
Join Date: Nov 2004
Posts: 1
Rep Power: 0 JackPirate is on a distinguished road
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.
JackPirate is offline   Reply With Quote
Old Nov 14th, 2004, 4:19 AM   #2
kurifu
Expert Programmer
 
kurifu's Avatar
 
Join Date: Jul 2004
Location: Halifax, Nova Scotia (Canada)
Posts: 784
Rep Power: 5 kurifu is on a distinguished road
Send a message via ICQ to kurifu Send a message via MSN to kurifu
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
kurifu is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 8:54 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC