Re: Simulate Keypress in Delphi


[ DelphiLand FAQ ]

Posted by webmaster Guido on August 19, 2004 at 15:16:23:

In Reply to: Keypress posted by Joey p12386 on August 17, 2004 at 22:44:18:

: can you show me how to simulate a keypress? I found away but it never seemed to work :(
: Thanks Joey :D
----------------------

Do you want to simulate a keypress in an *external* application? In that case, you can use the freeware "SendKeys" tools. If you don't find it on the Internet, ask me and I'll look it up for you.

Or do you want to simulate a keypress in your own application? There is no general Delphi procedure for this, but it's easy to simulate the effects of a keypress on a component, like adding a character into a TEdit, and so on...
On which component do you want to simulate the keypress: TEdit, TMemo, another type of component?


Related Articles and Replies


[ Delphi Forum -- by DelphiLand ]