Sign in to follow this  
Followers 0
Cush

Ie.au3 Won't Ienavigate

8 posts in this topic

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

Share this post


Link to post
Share on other sites



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

Share this post


Link to post
Share on other sites

#3 ·  Posted (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 Page

come 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 by JdeB

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

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

Hi,

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

Share this post


Link to post
Share on other sites

#6 ·  Posted (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")

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

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,

Dale

Edit: 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 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

Share this post


Link to post
Share on other sites

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,

Dale

Edit: 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.

Cheers

Paul

Share this post


Link to post
Share on other sites

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.

Cheers

Paul

Great. 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

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0