Jump to content

Recommended Posts

Posted

Just Playing...

#include <GUIConstants.au3>

$Password = "tim2277"

GUICreate("My Pass Protect",248,281)

$n=GUICtrlCreatePic(@Systemdir & "\oobe\images\wpakey.jpg",0,0,248,281)
GUICtrlSetState( -1, $GUI_DISABLE)

GUICtrlCreateLabel("Enter Password", 3, 245, 80, 15)
GUICtrlSetBkColor( -1, $GUI_BKCOLOR_TRANSPARENT )
$input = GUICtrlCreateInput("********", 3, 260, 80, 20)
$button = GUICtrlCreateButton("&Submit", 160, 260, 80, 20)
GUISetState ()

; Run the GUI until the dialog is closed
While 1
    $msg = GUIGetMsg()
    
    If $msg = $GUI_EVENT_CLOSE Then Exit
    
    If $msg = $button Then
        If GUICtrlRead($input) = $Password Then ExitLoop
        MsgBox(16,"Pass Protect","The password was not correct   ")
    EndIf    

Wend

MsgBox(32,"Great","Please Enjoy the program!!!")

8)

NEWHeader1.png

Posted

PLEASE DO NOT PM ME FOR HELP!

How do I make the background transparent? I want my text to show directly against the picture u helped me with...thanks!

#include <GUIConstants.au3>

$Password = "tim2277"

GUICreate("My Pass Protect",248,281)

$n=GUICtrlCreatePic(@Systemdir & "\oobe\images\wpakey.jpg",0,0,248,281)
GUICtrlSetState( -1, $GUI_DISABLE)

GUICtrlCreateLabel("Enter Password", 3, 245, 80, 15)
GUICtrlSetBkColor( -1, $GUI_BKCOLOR_TRANSPARENT )
$input = GUICtrlCreateInput("********", 3, 260, 80, 20)
GUICtrlSetBkColor( -1, 0x4E6FD6)
$button = GUICtrlCreateButton("Submit", 160, 260, 80, 20)
GUISetState ()

; Run the GUI until the dialog is closed
While 1
    $msg = GUIGetMsg()
    
    If $msg = $GUI_EVENT_CLOSE Then Exit
    
    If $msg = $button Then
        If GUICtrlRead($input) = $Password Then ExitLoop
        MsgBox(16,"Pass Protect","The password was not correct   ")
    EndIf    

Wend

MsgBox(32,"Great","Please Enjoy the program!!!")

8)

NEWHeader1.png

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
×
×
  • Create New...