greg613 Posted February 6, 2009 Share Posted February 6, 2009 Tried searching for this but nothing stood out. I'm trying to send text to a specific textbox on an IE webpage. I'm able to navigate IE clicking buttons etc but just having issue with this part of it. I don't want to just focus on the textbox. I want to use something like control send or controlsettext if thats possible. $oAdd = _IEGetObjByName ($oIE, "$add_name") _IEAction ($oAdd, "focus") ControlSend("http://" & $ip & "/Addserver.htm - Windows Internet Explorer", "", "[CLASS:Internet Explorer_Server; INSTANCE:1]", "$ip2", 1) and ControlSetText("http://" & $ip & "/Addserver.htm - Windows Internet Explorer","",$oAdd,"$IE") This is what I tried so far but they both did not work. The $add_name is correct because i'm able to focus to that control. Send("bla bla bla") is not a viable option. Thanks for any help you can provide. Link to comment Share on other sites More sharing options...
Authenticity Posted February 6, 2009 Share Posted February 6, 2009 Get the element like _IEGetObjById() and then, if applicable use _IEFormElementSetValue($oElem, 'Something')... Link to comment Share on other sites More sharing options...
greg613 Posted February 6, 2009 Author Share Posted February 6, 2009 worked perfect thanks a bunch 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