Re: Can delphi open and fill in fields of another app.
[ Related Articles and Replies ] [ DelphiLand FAQ ] [ Delphi Tutorials ]
Posted by webmaster Guido on December 16, 2002 at 02:31:12:
In Reply to: Can delphi open and fill in fields of another app. posted by Lontek on December 15, 2002 at 23:40:36:
: I have a program on my machine that has two fill-in fields that I have to type info into to get a desired result. My question is: Is it possible to write a Delphi exe that will open the above program
: and automatically put predefined info into the fill-in-fields without me physically
on the keyboard?
Starting an external application is not difficult; have a look at the code examples in DelphiLand's source-code section.
Filling in fields of the other application is possible if you can navigate to those fields with the keyboard. You can "send keys" (keystrokes) to another program's window, but it's not simple, there is no pre-defined procedure or function for this in Delphi. But I've seen some freeware components and code on the WWW. Don't remember exactly how it was called, but you should be able to locate it by searching for the terms "sendkeys", "sendkey" or "send keys". Maybe let us know on this forum if you can't find it, and we'll try to find it again.
Related Articles and Replies:
[ DelphiLand FAQ ] [ Delphi Tutorials ]