Sign in to follow this  
Followers 0
zzen11

IE function $o_object.HWND () problem

7 posts in this topic

#1 ·  Posted (edited)

I am using the IE user defined functions, I encounted a problem:

When calling __IEAttach(), it will call _IEPropertyGet() to get window handle, then an error popus up, saying $o_object.HWND () failed in _IEPropertyGet function.

There are some apps running on the box, using the IE control/container, so they look like an IE, but failing the function call $o_object.HWND () .

How do I check if the object support HWND () (i.e. $o_object.HWND () works)?

- Z

Edited by zzen11

Share this post


Link to post
Share on other sites



@zzen11 - I had this same problem with the IE Tab Extension for Firefox. Dale was looking into this but I'm not sure where he got with it.

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

@zzen11 - I had this same problem with the IE Tab Extension for Firefox. Dale was looking into this but I'm not sure where he got with it.

I'll have a fix for it ready for a new release soon. I can reproduce it and have found it happens with other IE "emulators" as well. This is because they masquerade as IE browser windows, yet do not expose the same properties.

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

I'll have a fix for it ready for a new release soon. I can reproduce it and have found it happens with other IE "emulators" as well. This is because they masquerade as IE browser windows, yet do not expose the same properties.

Dale

This sounds great. Before the new release, I am wondering if I have anyway just to skip that particular object and move on (without pop up a autoit fatal error dialog).

Thanks!

- Z

Share this post


Link to post
Share on other sites

This sounds great. Before the new release, I am wondering if I have anyway just to skip that particular object and move on (without pop up a autoit fatal error dialog).

Thanks!

- Z

Haven't tested, but I believe you should be able to add _IEErrorHandlerRegister() before the _IEAttach and it will become non-fatal.

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

Haven't tested, but I believe you should be able to add _IEErrorHandlerRegister() before the _IEAttach and it will become non-fatal.

Dale

Tried, still has fatal error at the line:

Return HWnd($o_object.HWND ()) in the function _IEPropertyGet()

Error message says:

Return HWnd($o_object.HWND())

Return ^ Error

Error: The requested action with this object has failed.

Hope this helps for developing a fix.

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

Thanks and sorry for the trouble. It will be temporary.

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

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