Bam Posted October 29, 2008 Share Posted October 29, 2008 its only part of the code but im not sure if i should be using a different command or if i need to put another 1 in thier. my problem is that when u click the login button 2 times in a row with a wrong login name and its wrong both times, it will be right the second time u click login. Case $msg = $Login_Btn $Edit_1 = GUICtrlRead($Edit_1, 1) ; return the text of the menu item if $Edit_1 = "Hi" Then MsgBox(64, "New GUI", "You clicked on the OK button!") endif Link to comment Share on other sites More sharing options...
Andreik Posted October 29, 2008 Share Posted October 29, 2008 its only part of the code but im not sure if i should be using a different command or if i need to put another 1 in thier. my problem is that when u click the login button 2 times in a row with a wrong login name and its wrong both times, it will be right the second time u click login. Case $msg = $Login_Btn $Edit_1 = GUICtrlRead($Edit_1, 1) ; return the text of the menu item if $Edit_1 = "Hi" Then MsgBox(64, "New GUI", "You clicked on the OK button!") endif Use another name for control ID and text from edit control. $Read = GUICtrlRead($Edit_1) If $Read = "Hi" Then MsgBox(64, "New GUI", "You clicked on the OK button!") EndIf( When the words fail... music speaks. Link to comment Share on other sites More sharing options...
Bam Posted October 29, 2008 Author Share Posted October 29, 2008 ty Andreik 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