Hello Me You Posted February 9, 2007 Posted February 9, 2007 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
evilertoaster Posted February 9, 2007 Posted February 9, 2007 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?
Hello Me You Posted February 9, 2007 Author Posted February 9, 2007 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
evilertoaster Posted February 9, 2007 Posted February 9, 2007 $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...
Hello Me You Posted February 9, 2007 Author Posted February 9, 2007 (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 February 9, 2007 by Hello Me You Random
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now