Jump to content

Quick IE.au3 problem


NELyon
 Share

Recommended Posts

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?

Link to comment
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?

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...