Sign in to follow this  
Followers 0
NELyon

Quick IE.au3 problem

4 posts in this topic

I'm working on a basic A/I bot, and i was trying to test in the new "Testing" Sticky (Thanks Valik) But this is what it keeps returning:

--> IE.au3 Error from function _IEFormElementGetObjByName, $_IEStatus_InvalidObjectType

--> IE.au3 Error from function _IEFormElementSetValue, $_IEStatus_InvalidDataType

Heres the code i'm using:

#include <IE.au3>
$oIE = _IECreate("http://www.autoitscript.com/forum/index.php?showtopic=34748")
_IENavigate($oIE, "http://www.autoitscript.com/forum/index.php?act=post&do=reply_post&f=2&t=29270")
$oForms = _IEFormGetCollection($oIE)
$post = _IEFormElementGetObjByName($oForms, "Post")
_IEFormElementSetValue($post, "Thanks for making this sticky Valik. PS: This is a forum bot i am testing")

using 3.2.0.10 (I think thats the beta we're on...)

So anyone know whats wrong?

Dale perhaps?

Share this post


Link to post
Share on other sites



Ok, helpfiled and got this:

#include <IE.au3>
$oIE = _IECreate("http://www.autoitscript.com/forum/index.php?showtopic=34748")
_IENavigate($oIE, "http://www.autoitscript.com/forum/index.php?act=post&do=reply_post&f=2&t=29270")
$oForm = _IEFormGetObjByName ($oIE, "REPLIER")
$oText = _IEFormElementGetObjByName ($oForm, "Post")
_IEFormElementSetValue ($oText, "Hey! This works!")

and got this error. Even though i have no region function in my script.

C:\Documents and Settings\Owner\My Documents\Nikku\wow_ocr\test.au3(1,18) : ERROR: syntax error (illegal character)
#endregion

~~~~~~~~~~~~~~~~~^
C:\Documents and Settings\Owner\My Documents\Nikku\wow_ocr\test.au3 - 1 error(s), 0 warning(s)

So i went into IE.au3 and deleted every instance of "Region" and "EndRegion" i found, then i got a syntax error on some function it didn't bother to tell me.

Anyone know whats going on here?

Share this post


Link to post
Share on other sites

It works fine here with v3.2.0.10. I'd suggest reinstalling the beta and see if that clears things up. I also compared beta versions 9 and 10 of IE.au3 and there hasn't been any changes.

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

I removed all of those top comments on IE.au3 and it worked. Kinda strange but it works! :lmao:

Edited by codemyster

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