//静态加载SwitchToThisWindow
procedure SwitchToThisWindow(hWnd:Thandle;fAltTab:boolean);stdcall;external 'User32.dll';

procedure TForm1.Button1Click(Sender: TObject);
var
h:thandle;
begin
h:=findwindow(nil,'test'); //为外部EXE标题
SwitchToThisWindow(h,true);
end;

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-10
猜你喜欢
  • 2021-11-17
  • 2021-12-11
  • 2021-12-14
  • 2022-12-23
  • 2021-07-09
  • 2022-12-23
  • 2021-10-01
相关资源
相似解决方案