botanic Posted April 1, 2007 Share Posted April 1, 2007 this is my script I cant seem to get the imput correctly can anyone help?func _Login() Local $Password, $Check, $btn, $msg, $First $User = "a" $Pass = "a" GUICreate("Please Login...", 320,120, @DesktopWidth/2-160, @DesktopHeight/2-45, -1, 0x00000018); WS_EX_ACCEPTFILES GUICtrlCreateLabel ("Planeshift Username", 10, 5) ; first cell 70 width $Username = GUICtrlCreateInput ( "", 10, 25, 300, 20) GUICtrlSetState(-1,$GUI_DROPACCEPTED) GUICtrlCreateLabel ("The Outlaws Add-On Password (For first login leave blank)", 10, 50) ; first cell 70 width $Password = GUICtrlCreateInput ("", 10, 68, 300, 20) ; will not accept drag&drop files $btn = GUICtrlCreateButton ("Login!", 10, 95, 60, 20) $First = GUICtrlCreateCheckbox ("CHECKBOX 1", 80, 95, 120, 20) GUISetState () While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop if $username = $User and $Password = $Pass Then _SelectMode() Wend endfunc Link to comment Share on other sites More sharing options...
_Kurt Posted April 1, 2007 Share Posted April 1, 2007 Well, to actually retrieve the text within a control, you must use GUICtrlRead($control). So change this line: if $username = $User and $Password = $Pass Then _SelectMode()oÝ÷ Ù:-+%wºÚ"µÍYÕRPÝXY ÌÍÝÙ[YJHH ÌÍÕÙ[ÕRPÝXY ÌÍÔÜÝÛÜ HH ÌÍÔÜÈ[ÔÙ[XÝ[ÙJ Kurt Awaiting Diablo III.. Link to comment Share on other sites More sharing options...
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