Jump to content

Recommended Posts

Posted (edited)

I am creating a script to lock PC's after a given time in hopes of training some staff on locking their PC when they leave their desks. If the script has to lock the PC, the given time is decreased. If the user locks it, it increases. I am having an issue figuring out a way to determine if the user locks the PC. I looked for a way to see if I could setup a hotkey for WIN + L but that got me no where. I've thought about doing some sort of key logging but I am not really interested in going that route unless it is the last resort. I have tried doing a combination of checking if the computer is locked and if it is, check the idle timer, but I couldn't get it accurate enough. Any thoughts or suggestions would be greatly appreciated, thank you.

 

 

Edit:

Found a solution here:  

 

Edited by crashnburn
Posted (edited)

Sweet. If you put Solved in the title of your thread then everybody all know that this is solved. Glad you figured it out.

Edited by Earthshine

My resources are limited. You must ask the right questions

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...