11-05-2012, 11:00 PM
وعليكم السلام ورحمة الله وبركاته
PHP كود :
function LastInput: DWord;
var
LInput: TLastInputInfo;
begin
LInput.cbSize := SizeOf(TLastInputInfo);
GetLastInputInfo(LInput);
Result := GetTickCount - LInput.dwTime;
end;
PHP كود :
procedure TForm1.Timer1Timer(Sender: TObject);
begin
Label1.Caption := Format('System Idle since %d ms', [LastInput]);
end;
كود :
http://www.swissdelphicenter.ch/torry/showcode.php?id=2018
