Sign in to follow this  
Followers 0
Hello Me You

Protect window with pass

5 posts in this topic

How do u protect a window with pass?

For example i want to create a window that ask for password.

After entering the password, open another window.

Thank You


Random

Share this post


Link to post
Share on other sites



make an input control on some window (or a simple inputbox), add a submit button. (make it a password field if yopu want)

when the button is pressed, comapire the input to some value and use logic to decide if you show the next window...not to hard no?

am i missing somthing?

Share this post


Link to post
Share on other sites

i know this but i want 2 windows, the first will ask for pass and the second it will be the main window.

can anyone please post a code?


Random

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

$protectedWindow=GUICreate("2nd window")
$pass=InputBox("Password","Enter Some Password","","*")
if $pass="Secret" then 
    GUISetState(@SW_SHOW,$protectedWindow)
    while 1
    WEnd
Else
    MsgBox(0,"ERROR","Wrong!")
EndIf

or so...

it does not work if i add things to the window Edited by Hello Me You

Random

Share this post


Link to post
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
Sign in to follow this  
Followers 0