Jump to content

Recommended Posts

Posted

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.

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
  • Recently Browsing   0 members

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