procedure InsertText(text:string); var i:integer; j:integer; ch:byte; str:string; begin i:=1; while i<=Length(text) do begin ch:=byte(text[i]); if Windows.IsDBCSLeadByte(ch) then begin Inc(i); str:=inttostr(MakeWord(byte(text[i]), ch)); keybd_event(VK_MENU, MapVirtualKey(VK_MENU, 0), 0, 0); j:=1; while j<=Length(str) do begin keybd_event(96+strtoint(str[j]), MapVirtualKey..