Jump to content

Recommended Posts

Posted (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 by satanttin

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...