以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  [求助]请问自动关闭程序时无需确认,直接关闭  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=52314)

--  作者:time
--  发布时间:2014/6/13 9:36:00
--  [求助]请问自动关闭程序时无需确认,直接关闭

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

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

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

 

请问怎样设置自动关闭程序时无需确认,直接关闭


--  作者:Bin
--  发布时间:2014/6/13 9:38:00
--  

BeforeCloseProject


e.SkipSave=true