Jump to content

Recommended Posts

Posted

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

Posted

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(

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
×
×
  • Create New...