Sign in to follow this  
Followers 0
virushandsome

Can't send text to textarea on vBulletin forum

5 posts in this topic

#1 ·  Posted (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 by virushandsome

Share this post


Link to post
Share on other sites



That is test account I created for anyone to help easier

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Anyone solved this?

Edited by virushandsome

Share this post


Link to post
Share on other sites

#5 ·  Posted (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 by SmOke_N

[center]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.[/center]

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