Tech Tutorials Database
GeekArticles Programming Delphi
 

Sending keyboard input and text to another process

 
Author: cc.embarcadero.com
Category: Delphi
Comments (0)

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.

Read More...




Sponsored Links




Read Next: RTTI and Active Scripting Demo



 

 

Comments



Post Your Comment:

Your Name:*
e-mail ID:(required for notification)*
Image Verification: 
 
 Subscribe