Jump to content

HTML textarea


Recommended Posts

hi all!

how do i fill out a textarea via html code?

i can't use the _IEFormGetObjByName, because there is no Form name in the HTML source.

here is the HTML code fragment:

<textarea spellcheck="false" name="Toi61_621273929954106" onfocus="We.XX(event);" onblur="T4();" tabindex="1" id="Toi61_621273929954106" class="compHeaderField inputField colorK3" rows="1"></textarea>

In summary, i would like to use some SET... command, which i can write text in the textarrea.

i think i need some command to select this (some get...): Toi61_621273929954106

and after i need some command to set the text. But unfortunately I don't know.

Thanks for the answer!

Link to comment
Share on other sites

By textarea, do you mean like an input box? Try _IEGetObjByName... Then you can use _IEFormElementSetValue on it (even if there's no form on the page) or you can just do something like the following:

#include <IE.au3>
$oIE = _IECreate ("http://www.google.com")
$oQuery = _IEGetObjByName($oIE, "q")
$oQuery.value = "This is my question"
Sleep (3000)
$oQuery.value = ""
Sleep (3000)
_IEFormElementSetValue($oQuery, "This is my 2nd question")
Edited by exodius
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...