Re: Simulating KB input in a Windows app, and reading out results

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Gary Chanson wrote:
"Ben Voigt" <rbv@xxxxxxxxxxxxx> wrote in message
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




Well 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...

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
.



Relevant Pages

  • Problem with file permissions
    ... >Domain with Windows 2000 server and Windows XP ... >Administrator: Full Control ... >able to edit any other user's file. ... 30 XP workstations, and after testing ...
    (microsoft.public.win2000.security)
  • Drag n Drop to an edit box
    ... Drag'n'Drop to an edit box. ... A RichTextEdit view provides the first feature but not the second. ... Will I need Louis Sumberg and Steve Waring Windows Shell package. ... Why can the RichEdit control receive drops but not the EDIT control? ...
    (comp.lang.smalltalk.dolphin)
  • Re: Simulating KB input in a Windows app, and reading out results
    ... That depends on the target application. ... probably find it by its control ID. ... Gary Chanson (Windows SDK MVP) ...
    (microsoft.public.win32.programmer.ui)
  • Re: Simulating KB input in a Windows app, and reading out results
    ... That depends on the target application. ... probably find it by its control ID. ... If it's not the only edit control ... getting the window which currently has the focus or something like that. ...
    (microsoft.public.win32.programmer.ui)
  • Re: Preventing pasting in a TEdit
    ... Almost every program for windows uses subclassing... ... edit control, whether transparently by VCL tools or overtly in WinApi ...
    (comp.lang.pascal.delphi.misc)