Answer the question
In order to leave comments, you need to log in
Program Alarm-anti-sleep?
Problem: there are computers that, according to the regulations, go into hibernation after 15 minutes, and there are users who do nothing, but then complain that the computer is blocked.
Can you advise a program that will say "Hey, uncle, your computer will go out right now, touch the mouse at least for the visibility of work" after 14 minutes of user inactivity? It should be like this, how to google - xs
Answer the question
In order to leave comments, you need to log in
According to our regulations, everyone who leaves the PC must lock their account or in an hour it will lock itself. If the user does nothing, then the reminder does not need to be done! After all, he does nothing for the PC. Let them put a reminder on their phone. Enter your account password in 5 seconds.
I just can't decide who is the bigger idiot - the one who came up with the idiotic "regulations" or the one who is now trying to find out what different crutches to get around it? If the first one is already finished, then the second one still has a chance - to send the first one to hell and not deal with garbage.
I collectively farmed the script on vbs at one time; for other purposes, the truth is to cancel the computer's auto-shutdown.
Option Explicit
Dim msg, title, result
Dim WshShell
msg = "Computer will be shutting down soon." & vbnewline & "" & vbnewline & "Click OK to cancel"
title = "Auto Shutdown"
Set WshShell = WScript.CreateObject("WScript.Shell")
result = WshShell.Popup (msg, 900, title, vbOkOnly + vbCritical + vbSystemModal)
Select case result
case vbOK
WshShell.Run "shutdown -a"
WScript.Quit 1
case else
WScript.Quit 0
End Select
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question