Old
Old
If attempts = 3 Then
MsgBox "The password that you've entered is invalid. You failed! Your PC will
be automatically locked in 20 second(s)!", vbCritical, "Windows Lock Screen -
Failed to enter correct password!"
Dim countdown
countdown = 20
Do While countdown > 0
CreateObject("WScript.Shell").Popup "Your PC will be automatically locked
in " & countdown & " second(s)!", 1, "Windows Lock Screen - Countdown"
WScript.Sleep 1000
countdown = countdown - 1
Loop
CreateObject("WScript.Shell").Run "rundll32.exe user32.dll LockWorkStation", 0,
True
IE.Quit
End If