SendInputHelper
1.0.0
SendInputhelper는 Delphi의 단위로 Windows의 SendInput-API를위한 간단하고 안전한 사용을위한 클래스가 포함되어 있습니다. 그것으로 당신은 모든 숯, 문자열, "시프트"-키 및 바로 가기를 일반 키보드 스트로크로 전달할 수 있습니다.
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 ;