houston08 Posted May 9, 2013 Share Posted May 9, 2013 (edited) Started learning autoit today. Thought I'd take one of my more common tasks and see if I can't auto it. One last thing i have to do every day, no? Note: This script assumes that I'm already logged in to the website on IE. #include <IE.au3> $oIE = _IECreate() _IENavigate($oIE, "[url="https://www.example.com"]https://www.example.com"[/url]) Sleep(1500) ;New Posting _IENavigate($oIE, "[url="https://www.example.com/?new_posting"]https://www.example.com/?new_posting"[/url]) $oForm2 = _IEFormGetCollection($oIE, 0); it is the 1st form on the page _IEFormSubmit($oForm2); <<< Problem Child MsgBox(0,"_IELinkClickByIndex",@error) MsgBox(0,"Notice","Reached EoF") Exit Line 11 is the issue. Whenever I click on the button, it gives me the following error in console: C:\Program Files (x86)\AutoIt3\Include\IE.au3 (560) : ==> The requested action with this object has failed.: WEnd WEnd^ ERROR >Exit code: 1 Time: 4.207 And the script will not continue forward. I've read several posts, and the most recent it seems to be at least 6 months old. Some suggestions were to disable security, add #RequireAdmin (or something of the sort) and a few other things, but so far. Nothing. I appreciate the help. Thanks! Edited May 9, 2013 by houston08 Link to comment Share on other sites More sharing options...
DaleHohm Posted May 9, 2013 Share Posted May 9, 2013 See 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...
houston08 Posted May 9, 2013 Author Share Posted May 9, 2013 I put that file into the include folder. Same Result, different line: --> IE.au3 T3.0-0 Error from function _IEAction, $_IEStatus_COMError (0) C:\Program Files (x86)\AutoIt3\Include\IE.au3 (579) : ==> The requested action with this object has failed.: WEnd WEnd^ ERROR >Exit code: 1 Time: 4.308 Link to comment Share on other sites More sharing options...
DaleHohm Posted May 9, 2013 Share Posted May 9, 2013 go back and read again. It requires the latest AutoIt beta as well. It is an odd error. Most people and configurations do not experience the problem. In fact, the code that fails has been unchanged for years without trouble - something has changed in windows or IE in the recent past that has caused this to happen frequently for some people. The fix is in the new include combined with the new AutoIt beta. 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...
houston08 Posted May 9, 2013 Author Share Posted May 9, 2013 Apologies! I will try that now! Link to comment Share on other sites More sharing options...
houston08 Posted May 9, 2013 Author Share Posted May 9, 2013 Ok. Redownloaded and installed Release. Then Downloaded and Installed Beta. Applied the IE file to the includes folder. Ran the script again, here is my new error: --> IE.au3 T3.0-0 Error from function _IEAction, $_IEStatus_COMError (0) C:\Program Files (x86)\AutoIt3\Include\IE.au3 (579) : ==> The requested action with this object has failed.: WEnd WEnd^ ERROR >Exit code: 1 Time: 4.013 Link to comment Share on other sites More sharing options...
DaleHohm Posted May 10, 2013 Share Posted May 10, 2013 You won't get this error if you are running the beta. Look at the full console output and I think you'll see that you are still running the production version of AutoIt. Look at the SciTe Tools menu to run the beta. 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...
houston08 Posted May 10, 2013 Author Share Posted May 10, 2013 Is there a 'How to use beta' thread? I've looked around a bit and didn't find one, but I'm pretty sure I'm using it. I toggled the beta on using the start menu shortcut then started the SciTE4 Editor. Same results. Link to comment Share on other sites More sharing options...
DaleHohm Posted May 10, 2013 Share Posted May 10, 2013 You're new here, so I'll continue trying to be patient with you. In my previous response, I told you to look at the full console output - the place in SciTe where you saw the WEnd error - the first thing it tells you is the version of AutoIt running. I also told you to look in the SciTe Tools menu to run the beta. 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...
Solution houston08 Posted May 10, 2013 Author Solution Share Posted May 10, 2013 I appreciate your patience. In the console there is this>"C:\Program Files (x86)\AutoIt3\SciTE\..\autoit3.exe" /ErrorStdOut "C:\Users\Josh\Documents\test.au3" --> IE.au3 T3.0-0 Error from function _IEAction, $_IEStatus_COMError (0) C:\Program Files (x86)\AutoIt3\Include\IE.au3 (579) : ==> The requested action with this object has failed.: WEnd WEnd^ ERROR >Exit code: 1 Time: 4.211 The only place i see that may indicate what version i'm using is the 1st and third line that has the file path, and the 2nd line, where it says 'T3.0-0'. Attached in the picture, I see no where in the tools menu mentioning beta. I figured out my problem as well. Unless I missed it during the thread, the solution was to COPY the SciTE folder from the Release folder, and put it into the BETA folder. Also move the IE.au3 file to the INCLUDE folder of the BETA directory. THEN run the SciTE Editor from the Beta directory. Link to comment Share on other sites More sharing options...
houston08 Posted May 10, 2013 Author Share Posted May 10, 2013 PS. Not sure why it attached three copies as thumbnails, but w/e. *SOLVED* Link to comment Share on other sites More sharing options...
Developers Jos Posted May 10, 2013 Developers Share Posted May 10, 2013 (edited) Please install the separate SciTE4AutoIt3 installer, hit Alt-F5 and Cut&Paste the output from the SciTE output pane. This will give is much better information. ... and I would do the copying of software between Beta and the production directory. Using the Full version of SciTE4AutoIt3 make it much easier to mix Production and beta. Thanks, Jos Edited May 10, 2013 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. 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