本文整理自网络,侵删。
function GetLastInput: integer; //获取闲置时间
var
LInput: TLastInputInfo;
begin
Result := 0;
try
LInput.cbSize := SizeOf(TLastInputInfo);
GetLastInputInfo(LInput);
Result := ((GetTickCount - LInput.dwTime) div 1000);
except
end;
end;
相关阅读 >>
Delphi 用tidsmip和tidmessage发送邮件
Delphi imagelist-图片(bmp)按名称而不按索引
更多相关阅读请进入《Delphi》频道 >>