Jump to content
Sign in to follow this  
MiMac

Problem with _IEattach

Recommended Posts

Hey all,

I have developped a script which works on a PC but not on another.

On the PC with the issue, the problem in the script comes from the function _IEattach.

Before launching the script, an IE page has to be present.

The beginning of the script is:

#include <IE.au3>
#include <INet.au3>
AutoItSetOption("WinTitleMatchMode",2)

WinActivate("Microsoft Internet Explorer","")
$Title = WinGetTitle("")
$oIE = _IEAttach($Title,"WindowTitle")oÝ÷ Ùh^'±yË­zØ^±Êâ¦Ö®¶­­ë)¢wljëh×6>"C:\Program Files\AutoIt3\SciTE\..\autoit3.exe" /ErrorStdOut "F:\ALSTOM\AutoIt_Test\3\EventsView2.au3"    
--> IE.au3 V2.3-1 Warning from function _IEAttach, $_IEStatus_NoMatchoÝ÷ Øí«jǺÚ"¶·¬¦Ý±«­¢+ØÐìÅÕ½ÐíèÀäÈíAɽɴ¥±ÌÀäÈíÕѽ%ÐÌÀäÈíM¥QÀäÈ츸ÀäÈíÕѽ¥Ð̹áÅÕ½Ðì½ÉɽÉMÑ=ÕÐÅÕ½ÐíèÀäÈí1MQ=4ÀäÈíÕѽ%Ñ}QÍÐÀäÈìÌÀäÈíÙ¹ÑÍY¥ÜȹÔÌÅÕ½Ðì)èÀäÈíAɽɴ¥±ÌÀäÈíÕѽ%ÐÌÀäÈí%¹±ÕÀäÈí%¹ÔÌ ÐÀàà¤èôôÐìMÕÍÉ¥ÁÐÕÍÝ¥Ñ ¹½¸µÉÉäÙÉ¥±¸è)%%Í=¨ ÀÌØíIÑlÑt¤Q¡¸)%%Í=¨ ÀÌØíIÑxII=H(Ðíá¥Ð½èÄQ¥µèÀ¸ÔÐÔ

I don't understand, because it works on my other PC.

They have the same version of windows (Win XP SP2), the same version of AutoIt (3.2.10.0)

The PC with the problem is a: Intel Xeon 3.4Ghz

Please help me.

MiMac

Share this post


Link to post
Share on other sites

I have done the test on another PC: works well

I dont understand. The problem is that the PC where the script doesn't work is the PC where the script has to be executed.

So, it's a big problem for me.

Please, help me :)

MiMac.

Share this post


Link to post
Share on other sites

Start with this change to prove it sees the window at all:

If WinExists("Microsoft Internet Explorer", "") Then
    $Title = WinGetTitle("Microsoft Internet Explorer", "")
    $oIE = _IEAttach($Title, "WindowTitle")
Else
    MsgBox(16, "Error", "Window does not exist: Microsoft Internet Explorer")
EndIf

I think your problem is earlier, but _IEAttach() is the first time you bother to verify the window exists at all.

:)


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites

Perhaps you should try using 'Title' instead of 'WindowTitle'. Doesn't IE7 say 'Windows Internet Explorer"?

Share this post


Link to post
Share on other sites

_IEAttach embedded was unfortunately broken by a bug in DLLCALL in 3.2.10.0 when syntax was changed for 64-bit

It is fixed in the next beta (not yet released). You'll need to revert to the previous AutoIt version for now or focus on another solution that avoids embedded (see PsaltyDS and Nahuel's posts for that).

Dale

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

_IEAttach embedded was unfortunately broken by a bug in DLLCALL in 3.2.10.0 when syntax was changed for 64-bit

It is fixed in the next beta (not yet released). You'll need to revert to the previous AutoIt version for now or focus on another solution that avoids embedded.

Dale

Thanks Nahuel and PsaltyDS for your responses, but the problem is not the presence or not of the IE page, but the _IEattach function. I've already tried your proposals.

Ok DaleHohm, i try to install a previous version of AutoIt (3.2.8.1 ?).

MiMac

Edit: I've not tried the Nahuel proposal . I try before changing AutoIt version

Edited by MiMac

Share this post


Link to post
Share on other sites

Edit: I've not tried the Nahuel proposal . I try before changing AutoIt version

Ok, the Nahuel proposal works.

Thanks All.

MiMac

Share this post


Link to post
Share on other sites

_IEAttach embedded was unfortunately broken by a bug in DLLCALL in 3.2.10.0 when syntax was changed for 64-bit

It is fixed in the next beta (not yet released). You'll need to revert to the previous AutoIt version for now or focus on another solution that avoids embedded (see PsaltyDS and Nahuel's posts for that).

Dale

Verified fixed in 3.2.11.0 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

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  

×
×
  • Create New...