📄 previnst.pas
字号:
unit PrevInst;
interface
uses
Windows,Messages, SysUtils, Controls, Forms, Dialogs, StdCtrls;
function CheckPrevInst( Title : string ) : boolean;
implementation
function CheckPrevInst( Title : string ) : boolean;
var
hd : HWND;
ps : Array[0..255] of Char;
begin
hd := FindWindow( 'TApplication', StrPCopy(ps, Title) );
if hd <> 0 then begin
SetForegroundWindow( hd );
ShowWindow( hd, SW_RESTORE );
end;
Result := hd <> 0;
end;
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -