SkillAgentSearch skills...

SendInputHelper

The simplified way to interact with the SendInput-API of windows with Delphi

Install / Use

/learn @WladiD/SendInputHelper
About this skill

Quality Score

0/100

Supported Platforms

Universal

Tags

README

SendInputHelper

SendInputHelper is a unit for Delphi, that contains a class for simple and safe usage for the SendInput-API of Windows. With it you can pass any chars, strings, "shift"-keys and shortcuts as regular keyboard strokes.

Example

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;
View on GitHub
GitHub Stars37
CategoryDevelopment
Updated5mo ago
Forks12

Languages

Pascal

Security Score

72/100

Audited on Oct 20, 2025

No findings