Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is there a way to detect when the screensaver kicks in? 1

Status
Not open for further replies.

snoopy75

Technical User
Aug 24, 2001
340
US
I've been trying to implement a system where my database kicks off the user after a certain period of inactivity. I've decided to define "inactive" as "the screensaver is on." Is there an API or something that can tell me if the screensaver is on, so I can log out the user?

Alternatively, is there another way to check a user's inactivity (without using resource-draining things like OnMouseMove, etc.)?
 
Just thought I'd resubmit this after the long weekend to see if anyone had some input. :)
 
I found a sample that , shuts down Access after a period of user inactivity .
It is Freeware and is Located at this address

Let me know if this Helps.
Shug
>:):O>
"If at first you don't succeed , USE a bigger Hammer"
 
Perfect! So a better way to determine inactivity is to track changes to the active control. If the active control doesn't change for a certain amount of time, shut down. I like it. :)

Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top