GeekArticles
Programming
Delphi
Programming
DelphiSending keyboard input and text to another process
Sometimes it is necessary to remote-control another application that cannot be modified and that does not offer an API for this purpose (like OLE automation). About the only option remaining in such case is to send fake keyboard input to the application to simulate user input.This upload contains a unit with a class that provides methods for this task. Input can either be sent to a specific control/window in the target application (if the window handle is known), or to the current foreground window.The test application provided is a D2009 project, the TPBKeyFeeder class has only been tested using D2009 but it should compile without problems in older versions at least back to Delphi 7.
Sponsored Links
Read Next: RTTI and Active Scripting Demo
Related Topics
Subscribe via RSS
Delphi
- A load of ASP.NET related tutorials, articles, tips and tricks!
- How to move PageControl's tabs using drag'n'drop
- Charts in database applications
- Creating Components Dynamically (at Run-Time)
- The role of the "AOwner" parameter in the Create constructor
- Creating a roll up form (with animation)
- Poll: Do you already have some experience with Delphi?
- Creating a database from Delphi code
- TMemoBar - T(Custom)Memo extender
- How to click-and-select a line in TMemo
