如果用户30秒内没有进行任何操作,就自动关闭系统,可以在SystemIdle中加入下面的代码:
If LastInputTickCount > 30000 Then Syscmd.Project.Exit()End If