幾個測試用的函數

function IsKeyDebug: Boolean;
begin
  if GetKeyState(VK_RCONTROL)<0 then
    Result:=True
  else
    Result:=False;
end;

function IsKeysDebug: Boolean;
begin
  if (GetAsyncKeyState(VK_RCONTROL) < 0) and (GetAsyncKeyState(VK_RSHIFT) < 0) then
    Result:=True
  else
    Result:=False;
end;

function ClipStr(AStr: String): Boolean;
begin
  Clipboard.SetTextBuf(PChar(AStr));
end;

function ClipLog(AStr: String): Boolean;
begin
  if IsKeyDebug or (debughook <> 0) then
  begin
    ClipStr(AStr);
  end;
end;

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章