Jump to content

Sending text to specific textbox in IE


greg613
 Share

Recommended Posts

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

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
 Share

  • Recently Browsing   0 members

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