AndrewBanfer
asked on
Is there a way to determine if a computer has been inactive for a period of time in VB6?
I have an analytical instrument connected to a computer. If we use the Windows Logout due to inactivity the analytical instrument stops acquiring data.
Is there a way to determine if a computer has been inactive for a period of time in Visual Basic 6?
This way we can make our own login screen and the analytical instrument continues to acquire data.
Is there a way to determine if a computer has been inactive for a period of time in Visual Basic 6?
This way we can make our own login screen and the analytical instrument continues to acquire data.
If you use the default screensaver option to require login after coming out of the screen saver mode then your program will continue to run. Just make sure that your power saving settings are set to never and never to ensure that the PC does not go into hibernation mode.
ASKER
Thanks Clockwatcher, I will try it shortly.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks very much and have a great day!
Happy I was able to help.
http://msdn.microsoft.com/en-us/library/windows/desktop/ms646302%28v=vs.85%29.aspx
The GetIdleSeconds call below will tell you how long in seconds the computer has been without user input.
Open in new window