Jump to content
Sign in to follow this  
NegativeNrG

IE.au3 Help.

Recommended Posts

NegativeNrG

Ok, i keep getting an error that says:

Variable Must be a type of 'Object'.

i can't figure out how to stop that error, and its for posting(just like autoit1...2..3).

Code:

$oIE = _IECreate(0)
        _IENavigate($oIE,'website')
        _IEClickLinkByText($oIE,'General Discussion')
        _IEClickimg($oIE,'Post new topic','alt')
        $form   = _IEFormGetObjByName($oIE, "post")
$o_title     = _IEFormElementGetObjByName($form, "subject")
;$o_desc     = _IEFormElementGetObjByName($o_form, "TopicDesc")
$o_message   = _IEFormElementGetObjByName($form, "message")

_IEFormElementSetValue($o_title, 'testing')
;_IEFormElementSetValue($o_desc, "I'm a knucklehead...")
_IEFormElementSetValue($o_message, 'Ignore This post. THanks')
_IEFormSubmit($form)

This is the 'Post' form name:

<form action="posting.php" method="post" name="post" onsubmit="return checkForm(this)" enctype="multipart/form-data">

This is where you input your message:

<textarea name="message" rows="15" cols="35" wrap="virtual" style="width:450px" tabindex="3" class="post" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);"></textarea>

Also, The forum is PHPBB, if you really want to look at the forum, PM ME. sorry.

Edited by NegativeNrG

[size=20]My File Upload[/size]Register at my site and upload.

Share this post


Link to post
Share on other sites
Valuater

$o_form, "TopicDesc")

$form... or $o_form

???

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites
NegativeNrG

As you can see, that line is commented.


[size=20]My File Upload[/size]Register at my site and upload.

Share this post


Link to post
Share on other sites
Valuater

i just found PHPBB site.. and ran it

it clicked the button for discusion, however when i wanted to read the portion for posting... i got the error because i was not logged in...

so do you need to log in first??

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites
NegativeNrG

well, we are already logged in, (login automatically cookie).


[size=20]My File Upload[/size]Register at my site and upload.

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.