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:
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:
[ autoit ]
#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