Re: Simulating KB input in a Windows app, and reading out results
- From: bthouin <bernard_thouin@xxxxxxxxxxx>
- Date: Fri, 08 Sep 2006 00:54:36 +0200
Gary Chanson wrote:
"Ben Voigt" <rbv@xxxxxxxxxxxxx> wrote in messageWell guys, huge problems with VB.Net. WindowFromPoint works, but I can't get GetClassName to work. Also, loads of the things you mentioned are found in the help under Windows CE ! But I'm on XP...
news:OiPyleo0GHA.4648@xxxxxxxxxxxxxxxxxxxxxxx
>>...get the handle of that control...<<
How do I do that ?
That depends on the target application. If it's the only edit
control
in the target dialog, you can find it by its window class. If not, you
can
probably find it by its control ID. If it's not the only edit control
and
the ID is not unique or is dynamic, it might be difficult to get the
handle.
You then might have to inject a hook into the target program and find it
by
getting the window which currently has the focus or something like that.
If the application has a consistent layout, then WindowFromPoint is your
friend.
Possibly, if he has a point to work from...
--
- Gary Chanson (Windows SDK MVP)
- Abolish Public Schools
And to answer some of the questions:
- the apps that I will have to "drive" are different
- they all have many forms
- and many controls on each form, mainly text boxes and pushbuttons
So, what do I do with the long integer I get from WindowFromPoint ???
Bernard
.
- Follow-Ups:
- Re: Simulating KB input in a Windows app, and reading out results
- From: Gary Chanson
- Re: Simulating KB input in a Windows app, and reading out results
- References:
- Simulating KB input in a Windows app, and reading out results
- From: bthouin
- Re: Simulating KB input in a Windows app, and reading out results
- From: Gary Chanson
- Re: Simulating KB input in a Windows app, and reading out results
- From: bthouin
- Re: Simulating KB input in a Windows app, and reading out results
- From: Gary Chanson
- Re: Simulating KB input in a Windows app, and reading out results
- From: Ben Voigt
- Re: Simulating KB input in a Windows app, and reading out results
- From: Gary Chanson
- Simulating KB input in a Windows app, and reading out results
- Prev by Date: Re: EM_GETLIMITTEXT, an TMemo -control and LastDllError #5
- Next by Date: Re: Simulating KB input in a Windows app, and reading out results
- Previous by thread: Re: Simulating KB input in a Windows app, and reading out results
- Next by thread: Re: Simulating KB input in a Windows app, and reading out results
- Index(es):
Relevant Pages
|