Cush Posted March 15, 2006 Posted March 15, 2006 Hello, I'm completely new to AutoIt, so I was trying some of Dale's scripts, but only got as far as line 2 before hitting a problem (not good) My whole script is... ; Script Start - Add your code below here #include <ie.au3> $o_IE = _IECreate () _IENavigate($o_IE, "http://www.google.com") Exit but when I run this, I get.... >"C:\Program Files\AutoIt3\SciTE\CompileAU3\CompileAU3.exe" /run /beta /ErrorStdOut /in "C:\Program Files\AutoIt3\beta\firstgo.au3" /autoit3dir "C:\Program Files\AutoIt3\beta" /UserParams >Running AU3Check (1.54.1.1) params: from:C:\Program Files\AutoIt3\beta +>AU3Check ended.rc:0 >Running:(3.1.1.113):C:\Program Files\AutoIt3\beta\autoit3.exe "C:\Program Files\AutoIt3\beta\firstgo.au3" C:\Program Files\AutoIt3\beta\Include\ie.au3 (246) : ==> The requested action with this object has failed.: $o_object.navigate ($s_url) $o_object.navigate ($s_url)^ ERROR +>AutoIT3.exe ended.rc:0 >Exit code: 0 Time: 1.212 A new IE window opens, but just sits there with 'about:blank' and thats it. Why is this. I'm sure it's blindingly obvious to anyone with a bit of experience, but I just can't see it. Please help Cush
neogia Posted March 15, 2006 Posted March 15, 2006 It works fine for me, make sure you're using the beta version of autoit, and au2exe. You can do this quite simply with the AWESOME tutorial Valuater has put together for autoit newbies.Click here for Valuater's Tutorial Page [u]My UDFs[/u]Coroutine Multithreading UDF LibraryStringRegExp GuideRandom EncryptorArrayToDisplayString"The Brain, expecting disaster, fails to find the obvious solution." -- neogia
Developers Jos Posted March 15, 2006 Developers Posted March 15, 2006 (edited) It works fine for me, make sure you're using the beta version of autoit, and au2exe. You can do this quite simply with the AWESOME tutorial Valuater has put together for autoit newbies.Click here for Valuater's Tutorial Pagecome on... he's running 3.1.1.113 as the output shows.I think its best to put in a com error handler as defined in the Beta helpfile which will tell you what the COM error is....There have been several posts on subjects like this as well .... Edited March 15, 2006 by JdeB 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.
Xenobiologist Posted March 15, 2006 Posted March 15, 2006 It works fine for me, make sure you're using the beta version of autoit, and au2exe. You can do this quite simply with the AWESOME tutorial Valuater has put together for autoit newbies.Click here for Valuater's Tutorial PageHi,he is using the beta as you can see here>Running:(3.1.1.113):C:\Program Files\AutoIt3\beta\autoit3.exe "C:\Program Files\AutoIt3\beta\firstgo.au3"But, it works for me, too. 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
neogia Posted March 15, 2006 Posted March 15, 2006 come on... he's running 3.1.1.113 as the output shows. [u]My UDFs[/u]Coroutine Multithreading UDF LibraryStringRegExp GuideRandom EncryptorArrayToDisplayString"The Brain, expecting disaster, fails to find the obvious solution." -- neogia
DaleHohm Posted March 16, 2006 Posted March 16, 2006 (edited) Hello,I'm completely new to AutoIt, so I was trying some of Dale's scripts, but only got as far as line 2 before hitting a problem (not good)My whole script is...; Script Start - Add your code below here#include <ie.au3>$o_IE = _IECreate ()_IENavigate($o_IE, "http://www.google.com")Exitbut when I run this, I get....>"C:\Program Files\AutoIt3\SciTE\CompileAU3\CompileAU3.exe" /run /beta /ErrorStdOut /in "C:\Program Files\AutoIt3\beta\firstgo.au3" /autoit3dir "C:\Program Files\AutoIt3\beta" /UserParams >Running AU3Check (1.54.1.1) params: from:C:\Program Files\AutoIt3\beta+>AU3Check ended.rc:0>Running:(3.1.1.113):C:\Program Files\AutoIt3\beta\autoit3.exe "C:\Program Files\AutoIt3\beta\firstgo.au3" C:\Program Files\AutoIt3\beta\Include\ie.au3 (246) : ==> The requested action with this object has failed.: $o_object.navigate ($s_url) $o_object.navigate ($s_url)^ ERROR+>AutoIT3.exe ended.rc:0>Exit code: 0 Time: 1.212A new IE window opens, but just sits there with 'about:blank' and thats it.Why is this. I'm sure it's blindingly obvious to anyone with a bit of experience, but I just can't see it.Please helpCushThere has been a very obscure timing issue that can cause this trouble. At least it WAS obscure -- for some reason there have been a lot more reports of it recently. I have posted some test code here that I am hopeful will address the issue once and for all. So far I have not gotten any feedback on it however, so if you would please try the modified functions and report your results.Thanks,DaleEdit: I shouldn't say I haven't gotten ANY feedback... I have a little but not enough to feel confident since I cannot reproduce this myself. Edited March 16, 2006 by DaleHohm 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
Cush Posted March 16, 2006 Author Posted March 16, 2006 There has been a very obscure timing issue that can cause this trouble. At least it WAS obscure -- for some reason there have been a lot more reports of it recently. I have posted some test code here that I am hopeful will address the issue once and for all. So far I have not gotten any feedback on it however, so if you would please try the modified functions and report your results.Thanks,DaleEdit: I shouldn't say I haven't gotten ANY feedback... I have a little but not enough to feel confident since I cannot reproduce this myself.Dale - that's done the trick. Absolutely fantastic, I can't wait to get into this some more and I think ie.au3 will be really useful. Much appreciated.CheersPaul
DaleHohm Posted March 16, 2006 Posted March 16, 2006 Dale - that's done the trick. Absolutely fantastic, I can't wait to get into this some more and I think ie.au3 will be really useful. Much appreciated.CheersPaulGreat. Thanks for testing.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
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