Steveiwonder Posted February 8, 2011 Share Posted February 8, 2011 (edited) Hi All, Got a strange issue here and don't know what it is. Here is just some test code to reproduce the same error. #include <ie.au3> $oIE = _IEAttach("EON/SONET", "WindowTitle") $tags = _IETagNameAllGetCollection($oIE) for $o in $tags ConsoleWrite($o.TagName & @CRLF) Next I don't need to get the tags but getting the tags causes a similar error, I could use _IeFormGetCollection and it would produce a similar error always stating "$oTemp.all.length" - .length object action failed The site is a simple HTML only, page with one image and a form which has two elements, 2x input for User/Password and a submit button. Thats all. It works on one PC but not on another and i cannot find out what the difference is, HTML is the same. All IE settings are the same. Using IE7 Error: >"C:\Program Files\AutoIt3\SciTE\..\autoit3.exe" /ErrorStdOut "C:\Documents and Settings\n5003096\Desktop\2.8 IN DEV\Test.au3" C:\Program Files\AutoIt3\Include\ie.au3 (2309) : ==> The requested action with this object has failed.: Return SetError($_IEStatus_Success, $oTemp.all.length, $oTemp.all) Return SetError($_IEStatus_Success, $oTemp.all.length^ ERROR >Exit code: 1 Time: 1.734 Thanks for any help Edited February 8, 2011 by Steveiwonder They call me MrRegExpMan Link to comment Share on other sites More sharing options...
JohnOne Posted February 8, 2011 Share Posted February 8, 2011 I dont know an answer, but for someone who might, what are the OS of the 2 PCs? AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Steveiwonder Posted February 8, 2011 Author Share Posted February 8, 2011 (edited) both XP Pro, 32bit. Edited February 8, 2011 by Steveiwonder They call me MrRegExpMan Link to comment Share on other sites More sharing options...
Steveiwonder Posted February 9, 2011 Author Share Posted February 9, 2011 (edited) I've just got through both PC's and compared all the settings Toos> Options > Advanced - They are all identical, all browsing history is cleared. There isn't any strange addons or any AV that is running. Are there any known issues that affect AU3 from accessing certain browser objects? Really apprciate any help Thanks EDIT: Just going through all the windows updates on both machines. Will post here once done. Edited February 9, 2011 by Steveiwonder They call me MrRegExpMan Link to comment Share on other sites More sharing options...
Steveiwonder Posted February 9, 2011 Author Share Posted February 9, 2011 (edited) Hrmm I can get the single input elements using _IeGetObjByName() The below works just fine. #include <ie.au3> $oIE = _IEAttach(WinGetHandle(""), "HWND"); Removed the window name on purpose. $input = _IEGetObjByName($oIE, "username") $input.value = "Test" Would it be because the form doesn't have a "name" or "id"? If so, how come it works on other computers? Regarding the windows update. Everything is identicle and update to date. Edited February 9, 2011 by Steveiwonder They call me MrRegExpMan Link to comment Share on other sites More sharing options...
Steveiwonder Posted February 10, 2011 Author Share Posted February 10, 2011 Reinstalled IE and it worked. They call me MrRegExpMan Link to comment Share on other sites More sharing options...
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