📄 mcommand.pas
字号:
unit MCommand;
interface
procedure ExecCommand(comm:pchar);
implementation
uses sysutils,windows;
function GetSubStr(min,max:integer;str:pchar):pchar;
var
k:integer;
tmp:array[0..1000] of char;
begin
for k:=min to max do tmp[k-min]:=str[k];
tmp[max-min+1]:=#0;
result:=tmp;
end;
procedure ExecCommand(comm:pchar);
var
tmp:array[0..1000] of char;
begin
strcopy(tmp,GetSubStr(0,3,comm));
strcopy(comm,pchar('Unknow Command'));
if stricomp(tmp,pchar('quit'))=0 then
begin
strcopy(comm,pchar('ok,Quit Server,i know'));
halt;
end;
if stricomp(tmp,pchar('exit'))=0 then
begin
strcopy(comm,pchar('ok,exit windows,i know'));
end;
end;
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -