Sven Huypens Posted July 14, 2006 Share Posted July 14, 2006 Hello, This is the first time I'm using AutoIt. I'm running the latest Beta version. My problem is that the _IEFrameGetObjByName command gives following error: Line 769 (File "C:\Program Files\AutoIt3\beta\Include\IE.au3): If $obeject.document.tagname = "FRAMESET" then If $object.document^ERROR Error: The requested action with this object has failed. My script I wrote: #include <IE.au3> $oIE = _IECreate("http://www.jura.be/fs_main.jsp") WinSetState("", "", @SW_MAXIMIZE) _IELoadWait($oIE) $oFrame = _IEFrameGetObjByName($oIE, "fMain") And here the HTML source: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>Jura</title> <link rel="stylesheet" type="text/css" href='http://www.jura.be/nl/css/style_basic.css'> <meta http-equiv=Content-Type content="text/html; charset=UTF-8"> <meta http-equiv="Cache-Control" content="private" /> <meta http-equiv="Cache-Control" content="no-cache"> <meta http-equiv="Pragma" content="no-cache"> <meta http-equiv="expires" content="Sun, 06 Nov 1994 08:49:37 GMT"> <script type='text/javascript'> <!-- docroot="http://www.jura.be"; // --> </script> </head> <frameset rows="80,*,22" cols="*" framespacing="0" frameborder="no" border="0"> <frame src="http://www.jura.be/nav_welcome.jsp" name="fNav" scrolling="no" noresize marginwidth="0" marginheight="0" id="fNav"> <frame src="http://www.jura.be/homepage.jsp" name="fMain" marginwidth="0" marginheight="0" id="fMain"> <frame src="http://www.jura.be/nl/nav/footer.html" name="fFooter" scrolling="no" noresize marginwidth="0" marginheight="0" id="fFooter"> </frameset> <noframes><body></body></noframes> </html> Best Regards, Sven. Link to comment Share on other sites More sharing options...
Xenobiologist Posted July 14, 2006 Share Posted July 14, 2006 Hi, hmm works for me. Do you use the latest ie.au3? So long, Mega Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times Link to comment Share on other sites More sharing options...
Sven Huypens Posted July 14, 2006 Author Share Posted July 14, 2006 (edited) Hi, I'm using the one provided with the latest Beta release op AutoIt (T2.0-5 7/3/06) Best Regards, Sven. Edited July 14, 2006 by Sven Huypens Link to comment Share on other sites More sharing options...
Moderators big_daddy Posted July 14, 2006 Moderators Share Posted July 14, 2006 There is something wrong with your IE.au3 file, because line 769 should read like this: If $o_object.document.body.tagName = "FRAMESET" Then Link to comment Share on other sites More sharing options...
Sven Huypens Posted July 17, 2006 Author Share Posted July 17, 2006 Sorry,Made a little error when typing the error message:Line 769 (File "C:\Program Files\AutoIt3\beta\Include\IE.au3):If $object.document.body.tagName = "FRAMESET" thenIf $object.document^ERRORError: The requested action with this object has failed. Link to comment Share on other sites More sharing options...
DaleHohm Posted July 17, 2006 Share Posted July 17, 2006 Sorry,Made a little error when typing the error message:I tried your sample code and received no error. Can you reproduce this? If so, there really may be something wrong with your IE.au3 file.Also, if you had to type in the error message I would assume you are not using SciTe... I highly recommend it.Dale Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model Automate input type=file (Related) Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded Better Better? IE.au3 issues with Vista - Workarounds SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead? Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble Link to comment Share on other sites More sharing options...
Sven Huypens Posted July 18, 2006 Author Share Posted July 18, 2006 (edited) I just reinstalled Autoit and the Beta version. This are the names of the setup files: -autoit-v3-setup.exe -autoit-v3.1.1.130-beta-Setup.exe And I installed SciTe. But I still get the same error. And I'm using the ie.au3 file provided with the beta version. Now I also installed everything on my own laptop and there it's working fine. Very strange. Is there any other program that can interfear with AutoIt scripts? Edited July 18, 2006 by Sven Huypens Link to comment Share on other sites More sharing options...
DaleHohm Posted July 18, 2006 Share Posted July 18, 2006 I just reinstalled Autoit and the Beta version. This are the names of the setup files: -autoit-v3-setup.exe -autoit-v3.1.1.130-beta-Setup.exe And I installed SciTe. But I still get the same error. And I'm using the ie.au3 file provided with the beta version. Now I also installed everything on my own laptop and there it's working fine. Very strange. Is there any other program that can interfear with AutoIt scripts?You can verify the version of IE.au3 used with this function: _IE_VersionInfo() If you are using SciTe, this will display the version number to the console, otherwise you can examine the values of the array returned (see the helpfile). It should be T2.0-5 or higher. The only time I've seen strange behaviour like you describe on one machine is when there was a zombir iexplore.exe process running on the system. Suggest you get out of all browsers, look at the process list and kill any iexplore.exe that remains. Failing that, try again after a reboot. Failing that, try to figure out what is different between your machines. Dale Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model Automate input type=file (Related) Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded Better Better? IE.au3 issues with Vista - Workarounds SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead? Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble 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