Tamas Posted May 15, 2010 Share Posted May 15, 2010 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 More sharing options...
exodius Posted May 15, 2010 Share Posted May 15, 2010 (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 May 15, 2010 by exodius Link to comment Share on other sites More sharing options...
Tamas Posted May 16, 2010 Author Share Posted May 16, 2010 Hi! $oQuery.value = "This is my question" that was what i needed thx!! 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