Jump to content
Sign in to follow this  
crashnburn

Lock Screen Script Issues

Recommended Posts

crashnburn

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

Share this post


Link to post
Share on other sites
Earthshine

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

 

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.