Jump to content

Read from Edit box


Bam
 Share

Recommended Posts

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

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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...