SendInputHelper
1.0.0
SendInputhelper es una unidad para Delphi, que contiene una clase para uso simple y seguro para el SendInput-API de Windows. Con él, puede pasar cualquier chars, cadenas, kilómetros y accesos directos y atajos como trazos de teclado regulares.
uses
..., SendInputHelper;
procedure TForm1.Button1Click (Sender: TObject);
var
SIH: TSendInputHelper;
begin
SIH := TSendInputHelper.Create;
try
// Start command shell
SIH.AddShortCut([ssWin], ' r ' ); // Win+R
SIH.AddDelay( 100 );
SIH.AddText( ' cmd ' , True); // Second parameter True means AppendReturn
SIH.AddDelay( 500 );
SIH.AddText( ' ping google.de ' , True); // Perform a ping.
SIH.Flush; // Isn't it easy?
finally
SIH.Free;
end ;
end ;