Sign in to follow this  
Followers 0
Tamas

HTML textarea

3 posts in this topic

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!

Share this post


Link to post
Share on other sites

#2 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites

Hi!

$oQuery.value = "This is my question"

that was what i needed :idea:

thx!!

Share this post


Link to post
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
Sign in to follow this  
Followers 0