skey.dpr
来自「《Delphi开发人员指南》配书原码」· DPR 代码 · 共 27 行
DPR
27 行
library SKey;
uses SysUtils, Windows, SendKey;
function SendKeys(P: PChar): TSendKeyError; stdcall;
begin
Result := SendKey.SendKeys(P);
end;
function IsPlaying: BOOL; stdcall;
begin
Result := Playing;
end;
procedure WaitForHook; stdcall;
begin
SendKey.WaitForHook;
end;
exports
SendKeys name 'SendKeys',
IsPlaying name 'IsPlaying',
WaitForHook name 'WaitForHook';
begin
end.
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?