Jump to content

I need help with a few things...


ssjfulkon198
 Share

Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
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
 Share

  • Recently Browsing   0 members

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