SendInput not working in certain apps - Windows with Delphi
问题 Using Delphi, I'm trying to find a way of sending a string/series of characters or keystrokes to the active window. Using SendInput I have the following code: uses System.SysUtils, Windows, System.Types, System.UITypes, System.Classes, System.Variants, VCL.Dialogs, VCL.ExtCtrls; var input: array of TInput; s: String; i: Integer; begin s := 'This is a longer string.' + sLineBreak + 'This is the second string with unicode ασδλκφχωιοευα.'; SetLength(input, Length(s)); i := 1; while i <= Length(s