Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6691161
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T05:43:11+00:00 2026-05-26T05:43:11+00:00

procedure SendText(ds:string); var TI: TInput; KI: TKeybdInput; i: integer; begin TI.Itype := INPUT_KEYBOARD; for

  • 0
procedure SendText(ds:string);
var
  TI: TInput;
  KI: TKeybdInput;
  i: integer;
begin
  TI.Itype := INPUT_KEYBOARD;
  for i := 1 to Length(ds) do
  begin
    KI.wVk := Ord(UpCase(ds[i]));
    KI.dwFlags := 0;
    TI.ki := KI;
    SendInput(1, TI, SizeOf(TI));
    KI.dwFlags := KEYEVENTF_KEYUP;
    TI.ki := KI;
    SendInput(1, TI, SizeOf(TI));
  end;
end;

How can I add Unicode? Any suggestions how to copy Russian (Cyrilic) symbols using SendInput(Edit1.Text);

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T05:43:11+00:00Added an answer on May 26, 2026 at 5:43 am

    In this example I’ve used unit JclUnicode.pas from JEDI project. If you have Delphi 6 up then you can omit the JclUnicode in the uses clause.

    uses
      JclUnicode;
    
    procedure SendText(const Value: WideString);
    var
      I: Integer;
      S: WideString;
      TI: TInput;
      KI: TKeybdInput;
    const
      KEYEVENTF_UNICODE = $0004;
    begin
      S := WideUpperCase(Value); 
      TI.Itype := INPUT_KEYBOARD;
      for I := 1 to Length(S) do
      begin
        KI.wVk := 0;
        KI.dwFlags := KEYEVENTF_UNICODE;
        KI.wScan := Ord(S[I]);
        TI.ki := KI;
        SendInput(1, TI, SizeOf(TI));
      end;
    end;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

procedure solve(liko_skaitmenu, rezultatas : integer); var i, j : integer; begin if (not baigti)
procedure TForm1.Timer2Timer(Sender: TObject); var ff : integer; begin for ff := 0 to 32
procedure ListMembers; var Member, lMembers: string; lengthOfMember: Longint; begin Writeln; Writeln; Reset(FileA); //Only need
procedure TMainForm.FormDestroy(Sender: TObject); var Registry: TRegistry; begin Registry := TRegistry.Create; try Registry.RootKey := HKEY_CURRENT_USER;
Example: procedure Test; var AText: array of AnsiChar; begin SetLength(AText, 7); end; Question What
procedure TfrmProgress.FormKeyDown(Sender: TObject; var Key: Word; Shift: TShiftState); begin if key = VK_RETURN then
procedure MyProc(Eval: Boolean); begin if not Eval then Exit; /* do stuff */ /*
CREATE PROCEDURE [dbo].[FlowClientGetNum] (@ID_ListGroupParIzm Integer, @ID_ListParIzm Integer) AS SELECT Number of my @ID_ListParIzm FROM
Procedure USP_UploadTraining @filePath varchar(100) AS BEGIN Insert into Training_TRNS (EmpName,EmpJobFunction,EmpRegion,SpeCourse_ID,status,DueDate) sCreate elect F2+' '+F3
ALTER PROCEDURE [Lending].[uspHMDALarIncomeGet] (@ApplicationId int) AS BEGIN SET NOCOUNT ON SET TRANSACTION ISOLATION LEVEL

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.