Jump to content
Sign in to follow this  

simple screen locker multiple screens?

Recommended Posts


Best autoiters,

i have a code which will lock your screen and in order to continue you must fill in a password or press pause button which i will delete when finished.

just when i do it my second screen will still be visuable which is not good so i would like to ask if someone could help me out?

here is the code so far:

#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>#include <WindowsConstants.au3> 
Opt("GUIOnEventMode", 1)

Global $PASS

$PASS = "tCHkvJW8"

HotKeySet ("{PAUSE}", "Close")
HotKeySet ("{F1}", "Unlock")


Func guimain()
$GMain = GUICreate("fullscreencover", @DesktopWidth , @DesktopHeight,0,0,$WS_POPUP)
WinSetTrans ($GMain, "text", 255)

While 1

Func Close()

Func Unlock()
$EnterPass = InputBox ("Unlock", "Please enter password to unlock screens", "", "#")
If $EnterPass = $PASS Then
MsgBox (0,"Oops... Wrong password?", "I'm sorry friend i think that might be the wrong password...")
Edited by satanttin

Share this post

Link to post
Share on other sites

The help file says:

The following hotkeys cannot be set:

NumPad's Enter Key - Instead, use {Enter} which captures both Enter keys on the keyboard.

Edited by abberration

RAID Calculator | Software Installer

The truth has been suppressed since the dawn of time.

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.