怎么判断系统空闲(长时间无键盘和鼠标操作)? 就像MSN发现你不在和回来那样 MSN是怎么发现你多长时间没有键盘和鼠标操作的?怎么写相应的处理程序?请给出代码 谢谢 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 function LastInput: DWord; var LInput: TLastInputInfo; begin LInput.cbSize := SizeOf(TLastInputInfo); GetLastInputInfo(LInput); Result := GetTickCount - LInput.dwTime; end; //Example: procedure TForm1.Timer1Timer(Sender: TObject); begin Label1.Caption := Format('System Idle since %d ms', [LastInput]); end; function LastInput: DWord; 这个函数只能在win 2000系统中使用吗? 易博龙拆开的手机开发平台是否发布了? IPv6 问题请教 ACCESS数据库绝对路径的问题? 一个ADOQuery调用Connection的BeginTrans,是不是这个事务为这个ADOQuery独立拥有? FastReport在Win98下能用吗? 菜鸟问题!! 面向对象与面向过程编程的区别是什么? zbde00(为了讨老婆喜欢,努力学习中......) 的50分 里面建立子目录的代码,第1次运行就报错,第2次运行就可以了,真奇怪 [求助]请问有没有grid控件可以实现图中的小计合计效果,不要报表 没有安装Delphi6.0的情况下如何使用F1Book控件? 两表合并问题
var
LInput: TLastInputInfo;
begin
LInput.cbSize := SizeOf(TLastInputInfo);
GetLastInputInfo(LInput);
Result := GetTickCount - LInput.dwTime;
end;
//Example:
procedure TForm1.Timer1Timer(Sender: TObject);
begin
Label1.Caption := Format('System Idle since %d ms', [LastInput]);
end;