uPod Posted February 24, 2008 Share Posted February 24, 2008 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. Link to comment Share on other sites More sharing options...
botanic Posted February 24, 2008 Share Posted February 24, 2008 (edited) you need to use the GUICtrlRead() Edited February 24, 2008 by botanic Link to comment Share on other sites More sharing options...
uPod Posted February 24, 2008 Author Share Posted February 24, 2008 (edited) Thanks for the tip! By the way, I got it working, thanks a lot. Edited February 24, 2008 by uPod Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now