VBA to Capture Windows lock and Un-lock timings in Access 2010 (1 Viewer)

rd.prasanna

New member
Local time
Today, 06:25
Joined
Oct 3, 2013
Messages
3
Dear All,

i am working on the Productivity management tool.
where the user will login and update his/her daily activity.

here i am thinking of logic where system will automatically mark employee on break if the system is locked.

As per the company IT policies system will automatically lock itself, If system is idle more that 5min.


Application should capture this system lock and unlock timing.

Kindly assist me in this regard.

Thanks in Advance.
Regards,
Prasanna RD
 

The_Doc_Man

Immoderate Moderator
Staff member
Local time
Yesterday, 19:55
Joined
Feb 28, 2001
Messages
27,001
If the application is still running when the user steps away, you are right that the screen will lock itself.

Here is a way to tell if the screen saver is active.

https://www.experts-exchange.com/questions/26554747/How-to-Detect-if-Screensaver-is-active.html

Here is a way to tell if the screen is locked. You have to go about 10 posts or so into the indicated thread to find code that might help because first you see a bit of discussion about the user's needs. But there IS a code segment.

https://www.ozgrid.com/forum/forum/.../104302-macro-to-detect-if-computer-is-locked

One of these two articles might help you.
 

Users who are viewing this thread

Top Bottom