satanttin Posted March 25, 2013 Posted March 25, 2013 (edited) 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 March 25, 2013 by satanttin
abberration Posted March 25, 2013 Posted March 25, 2013 (edited) 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 March 25, 2013 by abberration Easy MP3 | Software Installer | Password Manager
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now