重置系统空闲时间? [英] Reset System Idle Time?

查看:85
本文介绍了重置系统空闲时间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

VBA是否可以重置系统空闲时间,以便在您的数据库打开但空闲时,代码可以定期重置系统空闲时间,以便屏幕保护程序不会激活,从而中断所有网络连接,导致Access有错误?


我们的工作系统不允许停用屏幕保护程序,所以这将是一种解决方法.....

Is it possible for VBA to reset the System Idle time, so that while your DB is open, but idle, the code can routinely reset the system idle time, so that the screensaver does not activate, and thus break all network conneections, causing Access to have errors?

Our systems at work do not allow deactivating screensavers, so this would be a workaround.....

推荐答案

我已经把我的数据库打开了一整夜,我的计算机已锁定并且屏幕保护程序已打开,并且它没有破坏网络连接。事实上,我们所有工作中的计算机上的网络连接都在屏幕保护程序中保持运行状态。我猜测导致这个问题存在不同的问题。不知道在休息的什么时间,用户是否可能设置为在某些时间内无法登录网络?即使用户在这段时间内登录,也会断开与网络共享的连接,导致数据库断开连接。
I have left my databases open all night with my computer locked and screensaver on and it doesn''t break the network connection. In fact, the network connection on all of our computers at work remain up while they are in screensaver. I''m guessing that there is a different problem causing the issue. Not knowing at what time of day the break, is it possible that the user is setup to not be able to login to the network during certain times? Even if the user is logged in over this time, it will break the connection to the network shares, causing the database to disconnect.


我们的计算机几乎每次都会破坏数据库网络连接。屏幕保护程序激活或当他们入睡时。这似乎不会影响某些应用程序,例如Outlook,但我注意到如果我的计算机睡着然后我将其唤醒,则Outlook需要一段时间才能刷新并完全正常运行。


我们在查看纸质记录和注释数据库中的差异时使用我们的数据库。有时,纸质审查可能需要比所需的屏幕保护程序超时更长的时间,并且网络连接将被破坏。这就是我试图重置系统空闲时间的原因。如果系统认为它自上次活动起仅有大约60秒(而不是10分钟),它将不会激活屏幕保护程序,从而允许网络连接保持活动状态。
Our computers break the DB network connections just about every time the screensaver activates or when they fall asleep. This doesn''t seem to affect some applications, like Outlook, but I have noticed that if my computer falls asleep and then I wake it up, it will take a while for Outlook to refresh and become fully functional.

Our DB is used while we are reviewing paper records and annotating discrepancies in the DB. Sometimes, the paper review may take longer than the required screensaver timeout and the network connection will be broken. This is why I am trying to reset the system idle time. If the system think that it has only ben 60 seconds since the last activity (instead of 10 minutes), it will not activate the screensaver, thus allowing the network connections to stay alive.


My最后的猜测是检查活动目录中的组策略,以查看是否存在禁用NIC的策略,或者在屏幕保护程序中可能与网络共享断开连接。我不知道如何使用VBA重置空闲计时器。
My last guess would be to check the group policy in active directory to see if there is a policy to disable the NIC or maybe disconnect from the network shares when in screensaver. I don''t know how to reset the idle timer using VBA.


这篇关于重置系统空闲时间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆