通過activatekeyboardlayout方法切換到指定的輸入法
procedure TForm
var
I: Integer;
myhkl: hkl;
begin
ImeName := InputName;
if Length(ImeName) <>
begin
if Screen
begin
I := screen
if I >=
myhkl := hkl(screen
else
begin
ShowMessage(
end;
activatekeyboardlayout(myhkl
end;
end;
end;
right
From:http://tw.wingwit.com/Article/program/Delphi/201311/24806.html