Jump to content
Sign in to follow this  
satanttin

simple screen locker multiple screens?

Recommended Posts

satanttin

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")

guimain()

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

While 1
WEnd

Func Close()
Exit
EndFunc

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

Share this post


Link to post
Share on other sites
abberration

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  

×