Hi,
This script locks the windows after X minutes of the idleness where there should be no input from the keyboard or mouse and requires the user to enter the password to get back in.
This will reset the idle time. when the time off is met with the provided condition the system will lock.
Note:
Edit parameters: