virushandsome Posted December 13, 2014 Posted December 13, 2014 (edited) I want to text some message into textarea on vBulletin forum. I usually use _IEGetObjByName, _IEFormElementSetValue to do it. After view this page's source I find the textarea is a iframe, therefore I use _IEBodyWriteHTML to text message but unsuccess. What's mistake in this case? account to login this forum: user: likeauoit pass: online999 #include <IE.au3> $Url = 'http://sinhvienit.net/forum/loi-loading-khi-sua-bai-viet.345331.html' $oIE = _IECreate($Url,1) $oForm = _IEFormGetObjByName ($oIE, "vbform") $oFrame = _IEFrameGetCollection($oForm,0) ; this page only has 1 frame _IEBodyWriteHTML($oFrame,"Hello world! We text this message with Autoit") Edited December 13, 2014 by virushandsome
Bert Posted December 13, 2014 Posted December 13, 2014 (edited) NEVER POST YOUR ID AND PASSWORD. Edited December 13, 2014 by Bert The Vollatran project My blog: http://www.vollysinterestingshit.com/
virushandsome Posted December 14, 2014 Author Posted December 14, 2014 That is test account I created for anyone to help easier
virushandsome Posted December 26, 2014 Author Posted December 26, 2014 (edited) Anyone solved this? Edited December 26, 2014 by virushandsome
Moderators SmOke_N Posted December 26, 2014 Moderators Posted December 26, 2014 (edited) By "sold" I assume you mean solved. Yes, it was quite easy. 1. I downloaded debugbar: http://www.debugbar.com/ 2. I took the time (only an hour or so, much less than 14 days) and studied the _IE* functions in the help file 3. I scratched my head for a second, and I was about to post my code for help, but then I realized, the code I was going to post, was just me copying and pasting out of something and was absolutely irrelevant to what I was actually trying to accomplish. So rather than try to pretend I actually did something to help myself, I studied a little bit more. 4. I used what I learned from those examples, and in 7 lines of code easily logged in. Edited December 26, 2014 by SmOke_N Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
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