zzen11 Posted September 15, 2006 Share Posted September 15, 2006 (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 September 15, 2006 by zzen11 Link to comment Share on other sites More sharing options...
Moderators big_daddy Posted September 15, 2006 Moderators Share Posted September 15, 2006 @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. Link to comment Share on other sites More sharing options...
DaleHohm Posted September 15, 2006 Share Posted September 15, 2006 (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 September 15, 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 Link to comment Share on other sites More sharing options...
zzen11 Posted September 15, 2006 Author Share Posted September 15, 2006 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.DaleThis 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 Link to comment Share on other sites More sharing options...
DaleHohm Posted September 15, 2006 Share Posted September 15, 2006 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!- ZHaven'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 Link to comment Share on other sites More sharing options...
zzen11 Posted September 15, 2006 Author Share Posted September 15, 2006 Haven't tested, but I believe you should be able to add _IEErrorHandlerRegister() before the _IEAttach and it will become non-fatal.DaleTried, 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. Link to comment Share on other sites More sharing options...
DaleHohm Posted September 15, 2006 Share Posted September 15, 2006 (edited) Thanks and sorry for the trouble. It will be temporary. Dale Edited September 15, 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 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