Sign in to follow this  
Followers 0
uPod

Input Problems

3 posts in this topic

I am trying to make a input box to where a person puts text and then that text can be used later instead of having the code run each time with the same text. Basically what I want is to make the value of the input a variable so that I can use it later. But each time I try this I end up getting a 5.

$g_Input1 = GUICtrlCreateInput ("UserName", 0, -1)

$g_Input2 = GUICtrlCreateInput ("PassWord", 0, -1)

$o_UsrTxt = _IEFormElementGetObjByName ($o_Login, "username")

_IEFormElementSetValue ($o_UsrTxt, $g_Input1)

$o_PassTxt = _IEFormElementGetObjByName ($o_Login, "password")

_IEFormElementSetValue ($o_PassTxt, $g_Input2)

This is what I thought I could do, using this example you can see that I'm trying to do something really easy, I just can't figure out why I get a 5 when it should output the value of the variable, which would be the user's text.

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

you need to use the

GUICtrlRead()

Edited by botanic

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Thanks for the tip!

By the way, I got it working, thanks a lot.

Edited by uPod

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