Sign in to follow this  
Followers 0
Bam

Read from Edit box

3 posts in this topic

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

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

ty Andreik :P

Share this post


Link to post
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
Sign in to follow this  
Followers 0