以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  对LastInputTickCount的理解?  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=14402)

--  作者:pc005637
--  发布时间:2011/11/18 10:37:00
--  对LastInputTickCount的理解?

帮助内容:

如果用户30秒内没有进行任何操作,就自动关闭系统,可以在SystemIdle中加入下面的代码:

If LastInputTickCount > 30000 Then
    Syscmd.Project.Exit()
End If

提示:LastInputTickCount是一个系统变量,返回距离用户上次操作之后的时间,单位为毫秒。

 

这个变量是当用户有操作之后,就归零,再重新计时。

还是,不归零,继续计时?谢谢。


--  作者:狐狸爸爸
--  发布时间:2011/11/18 10:41:00
--  
归零的
--  作者:pc005637
--  发布时间:2011/11/18 11:14:00
--  对LastInputTickCount的理解?
谢谢。