BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Ability to capture the text from an field in another applica

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Thirdparty Tools (General)
View previous topic :: View next topic  
Author Message
Dan
Guest





PostPosted: Thu May 17, 2007 12:03 am    Post subject: Ability to capture the text from an field in another applica Reply with quote



I am trying to capture the text from an edit control from another
application that is running. I did not write this application but I need to
run a separate application based on the information entered in the text
captured.



I am not too sure where to start looking as to how this could be
accomplished. I have looked into system hooks but this would mean that my
application would have to be running already and have captured the text
while it was entered. Is there a way to 'read' a screen from another
running application?



Thanks, Dan
Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Thu May 17, 2007 12:08 am    Post subject: Re: Ability to capture the text from an field in another app Reply with quote



"Dan" <Dan (AT) newsgroup (DOT) com> wrote in message
news:464b558b$1 (AT) newsgroups (DOT) borland.com...

Quote:
I am not too sure where to start looking as to how this could
be accomplished.

This is not a third-party tools issue. You should ask your question
in the nativeapi newsgroup instead, as you will have to use the
Windows API to accomplish what you are asking for. You need to find
and obtain the HWND handle of the specific edit field you are
interested in, and then you can query its current text.


Gambit
Back to top
Dan
Guest





PostPosted: Thu May 17, 2007 12:29 am    Post subject: Re: Ability to capture the text from an field in another app Reply with quote



Sorry. I should have mentioned that I was looking for a component to
perform the capture.
But thank you for the information.

"Remy Lebeau (TeamB)" <no.spam (AT) no (DOT) spam.com> wrote in message
news:464b585a$1 (AT) newsgroups (DOT) borland.com...
Quote:

"Dan" <Dan (AT) newsgroup (DOT) com> wrote in message
news:464b558b$1 (AT) newsgroups (DOT) borland.com...

I am not too sure where to start looking as to how this could
be accomplished.

This is not a third-party tools issue. You should ask your question
in the nativeapi newsgroup instead, as you will have to use the
Windows API to accomplish what you are asking for. You need to find
and obtain the HWND handle of the specific edit field you are
interested in, and then you can query its current text.


Gambit

Back to top
Mike Shkolnik
Guest





PostPosted: Thu May 17, 2007 12:29 am    Post subject: Re: Ability to capture the text from an field in another app Reply with quote

Dan,

check our freeware ShowPW: http://www.scalabium.com/showpw.htm
Is it what you need?

--
With best regards, Mike Shkolnik
Scalabium Software
http://www.scalabium.com
mshkolnik (AT) scalabium (DOT) com

"Dan" <Dan (AT) newsgroup (DOT) com> wrote in message
news:464b558b$1 (AT) newsgroups (DOT) borland.com...
Quote:
I am trying to capture the text from an edit control from another
application that is running. I did not write this application but I need
to
run a separate application based on the information entered in the text
captured.



I am not too sure where to start looking as to how this could be
accomplished. I have looked into system hooks but this would mean that my
application would have to be running already and have captured the text
while it was entered. Is there a way to 'read' a screen from another
running application?



Thanks, Dan

Back to top
Dan
Guest





PostPosted: Thu May 17, 2007 1:20 am    Post subject: Re: Ability to capture the text from an field in another app Reply with quote

Thanks Mike, but not exactly what I am looking for. I have about 5 fields
that I would like to capture and use to call my application. I think what I
am looking for is what some people call 'screen scraping' but in a windows
environment. I would like to call up my application which would 'scrape'
the window in the other application and then provide me the information that
I need to continue with my application.



Dan


"Mike Shkolnik" <mshkolnik2002 (AT) ukr (DOT) net> wrote in message
news:464b5d24 (AT) newsgroups (DOT) borland.com...
Quote:
Dan,

check our freeware ShowPW: http://www.scalabium.com/showpw.htm
Is it what you need?

--
With best regards, Mike Shkolnik
Scalabium Software
http://www.scalabium.com
mshkolnik (AT) scalabium (DOT) com

"Dan" <Dan (AT) newsgroup (DOT) com> wrote in message
news:464b558b$1 (AT) newsgroups (DOT) borland.com...
I am trying to capture the text from an edit control from another
application that is running. I did not write this application but I need
to
run a separate application based on the information entered in the text
captured.



I am not too sure where to start looking as to how this could be
accomplished. I have looked into system hooks but this would mean that
my
application would have to be running already and have captured the text
while it was entered. Is there a way to 'read' a screen from another
running application?



Thanks, Dan



Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Thu May 17, 2007 3:23 am    Post subject: Re: Ability to capture the text from an field in another app Reply with quote

"Dan" <Dan (AT) newsgroup (DOT) com> wrote in message
news:464b6788$1 (AT) newsgroups (DOT) borland.com...

Quote:
I have about 5 fields that I would like to capture and use to call
my
application. I think what I am looking for is what some people call
'screen scraping' but in a windows environment.

Screen scraping essentially takes a screenshot of the screen and then
analyzes it for information. In most cases, multiple screenshots are
taken and then compared to see what changed from one to the next (such
as for creating animations using differential info to minimize the
amount of data that has to be stored/transmitted). That is way
outside the realm of what you are asking for. Like I told you
earlier, all you need to do is find the HWND handle of the particular
edit field that you are interested in, and then query its current
value directly. There are plenty of ways to do that.


Gambit
Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Thu May 17, 2007 3:24 am    Post subject: Re: Ability to capture the text from an field in another app Reply with quote

"Dan" <Dan (AT) newsgroup (DOT) com> wrote in message
news:464b5b87$1 (AT) newsgroups (DOT) borland.com...

Quote:
Sorry. I should have mentioned that I was looking for
a component to perform the capture.

You don't need a component for it. Just use the API directly,
specifically FndWindow/Ex(), EnumChildWindows(), GetWindowText(), etc.
And use tools such as Microsoft's Spy++ or Borland's WinSight to see
the Parent/Child relationship between nested controls so you can
figure out how deep to drill into a window to find the edit control
you want.


Gambit
Back to top
Dan
Guest





PostPosted: Thu May 17, 2007 5:50 pm    Post subject: Re: Ability to capture the text from an field in another app Reply with quote

Thank you. I found some sample code that should get me started. If I have
any more questions, I will continue in the nativeapi.win32 group

Thanks again.




"Remy Lebeau (TeamB)" <no.spam (AT) no (DOT) spam.com> wrote in message
news:464b84c9$1 (AT) newsgroups (DOT) borland.com...
Quote:

"Dan" <Dan (AT) newsgroup (DOT) com> wrote in message
news:464b5b87$1 (AT) newsgroups (DOT) borland.com...
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Thirdparty Tools (General) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.