📄 main.~dpr
字号:
program Main;
uses
Forms,
Windows,
UnitMain in 'UnitMain.pas' {Form1};
{$R *.res}
var
myMutex:HWND;
exefilename:String;
begin
exefilename:=ParamStr(1);
if exefilename<>'' then begin
if fileexists(exefilename) then
winexec(Pchar(exefilename),SW_SHOWNORMAL);
end;
myMutex:=CreateMutex(nil,false,'MSLV1108');
if WaitForSingleObject(myMutex,0)<>wait_TimeOut then//程序没有被运行过
begin
Application.Initialize;
Application.CreateForm(TForm1, Form1);
Application.Run;
end;
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -