|
I love these two scripts. I was going nuts trying to find a way to make a scheduled script run at night. Locking with Win+l blocks some inputs from scripts, and I never did find a way to emulate Ctrl+Alt+Del with a script in order to unlock Windows.
The first line in my scheduled script is:
Run, %A_ScriptDir%\Auto Unlock.ahk
And the last line is: Run, %A_ScriptDir%\Auto Lock.ahk
In my startup folder is the following : #l::run, C:\.........\Auto Lock.ahk
When I leave at night, I press Win+l to lock my PC. The scheduled script unlocks the PC, runs, and Relocks the PC during the night.
Ignore the following, as it is working fine now. Not sure why however!
/*In the morning, the AutoLock script will not accept my password keystrokes and I have to Alt+x to unlock. If I start the AutoLock with the Win+l hotkey, it will accept my password and unlock.
Can someone please tell me what I am missing to make this work correctly when called from my script?*/
|