NELyon Posted October 19, 2006 Posted October 19, 2006 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?
NELyon Posted October 19, 2006 Author Posted October 19, 2006 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?
Moderators big_daddy Posted October 19, 2006 Moderators Posted October 19, 2006 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.
NELyon Posted October 19, 2006 Author Posted October 19, 2006 (edited) I removed all of those top comments on IE.au3 and it worked. Kinda strange but it works! Edited October 19, 2006 by codemyster
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