📄 zrzxxt.dpr
字号:
program zrzxxt;
uses
Forms,
Windows,
zrzxkzxt in 'ZRZXKZXT.PAS' {Form1},
ulong in 'ULONG.PAS' {long},
pianchen in 'PIANCHEN.PAS' {timeedit},
uGloabVar in 'uGloabVar.pas',
ts in 'ts.pas' {tsForm},
senguoqiUnit in 'senguoqiUnit.pas' {senguoqi},
guanyuUnit in 'guanyuUnit.pas' {Form2};
{$R *.res}
var
MutexHandle: THandle;
begin
begin
// whether existed
MutexHandle := CreateMutex(nil, TRUE, '智能作息控制系统');
if MutexHandle <> 0 then
begin
if GetLastError = ERROR_ALREADY_EXISTS then
begin
MessageBox(0, '不好意思智能作息控制系统已经运行...', '提醒', mb_IconHand);
CloseHandle(MutexHandle);
Halt; // 'Halt' Is stop running the actual application.
end;
end;
end;
ReadFromReg;
Application.Initialize;
Application.Title := '智能作息控制系统';
Application.CreateForm(TForm1, Form1);
Application.CreateForm(Ttimeedit, timeedit);
Application.CreateForm(TtsForm, tsForm);
Application.CreateForm(Tlong, long);
Application.CreateForm(Tsenguoqi, senguoqi);
Application.CreateForm(TForm2, Form2);
Application.Run;
WriteReg;
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -