mikehunt114 Posted November 16, 2006 Share Posted November 16, 2006 The script that I am referring to runs well on my computer, but I put a compiled version on another computer, and it generated this error (see attachment).As far as I can tell, the error comes from _IEPropertyGet? It's the only function in IE.au3 that uses the expression "Return HWnd($o_object.HWND ())". I could be wrong..._IEPropertyGet is never called within my script. Could this be a version compatibility problem or something? Or am I just plain missing something?Any help is appreciated. IE Dev ToolbarMSDN: InternetExplorer ObjectMSDN: HTML/DHTML Reference Guide[quote]It is surprising what a man can do when he has to, and how little most men will do when they don't have to. - Walter Linn[/quote]--------------------[font="Franklin Gothic Medium"]Post a reproducer with less than 100 lines of code.[/font] Link to comment Share on other sites More sharing options...
Developers Jos Posted November 16, 2006 Developers Share Posted November 16, 2006 The script that I am referring to runs well on my computer, but I put a compiled version on another computer, and it generated this error (see attachment).As far as I can tell, the error comes from _IEPropertyGet? It's the only function in IE.au3 that uses the expression "Return HWnd($o_object.HWND ())". I could be wrong..._IEPropertyGet is never called within my script. Could this be a version compatibility problem or something? Or am I just plain missing something?Any help is appreciated.You are not showing any scriptlet, but I guess you have not enabled the Com error handler ... 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. Link to comment Share on other sites More sharing options...
ame1011 Posted November 16, 2006 Share Posted November 16, 2006 HWnd is the window handle... Most likely you're trying to perform an action on an object that is no longer there or that you did not reference properly. We can't help you without a working example. [font="Impact"] I always thought dogs laid eggs, and I learned something today. [/font] Link to comment Share on other sites More sharing options...
mikehunt114 Posted November 16, 2006 Author Share Posted November 16, 2006 (edited) You are not showing any scriptlet, but I guess you have not enabled the Com error handler ...@ JdeBSorry, I am unaware of a COM error handler, can you elaborate for me? Sounds like it would be of great help.HWnd is the window handle...Most likely you're trying to perform an action on an object that is no longer there or that you did not reference properly.We can't help you without a working example.@ame1011It doesn't perform any actions, the script will not start. This exact script is running on a different computer right now. I'm not using any window handles in my code, only the code for _IEPropertyGet is using this as far as I can tell.Edit: I didn't provide any code because my code is working fine on another computer, I thought there may be an easy explanation for this problem to occur on a different computer. If not, guess I'll just whack away at debugging the whole thing on this computer. A COM error handler would prove useful (I'm new to COM methods, and IE too) Edited November 16, 2006 by mikehunt114 IE Dev ToolbarMSDN: InternetExplorer ObjectMSDN: HTML/DHTML Reference Guide[quote]It is surprising what a man can do when he has to, and how little most men will do when they don't have to. - Walter Linn[/quote]--------------------[font="Franklin Gothic Medium"]Post a reproducer with less than 100 lines of code.[/font] Link to comment Share on other sites More sharing options...
Moderators big_daddy Posted November 16, 2006 Moderators Share Posted November 16, 2006 My first guess would be that you have Firefox running in the background with the IE Tab Extension in use. If this is true try closing it and running the script again. The error handler they are referring to is _IEErrorHandlerRegister(). Link to comment Share on other sites More sharing options...
mikehunt114 Posted November 16, 2006 Author Share Posted November 16, 2006 No, Firefox is not running at all. Guess I'll check out the error handler. IE Dev ToolbarMSDN: InternetExplorer ObjectMSDN: HTML/DHTML Reference Guide[quote]It is surprising what a man can do when he has to, and how little most men will do when they don't have to. - Walter Linn[/quote]--------------------[font="Franklin Gothic Medium"]Post a reproducer with less than 100 lines of code.[/font] Link to comment Share on other sites More sharing options...
DaleHohm Posted November 16, 2006 Share Posted November 16, 2006 _IEErrorHandlerRegister() instantiates a COM error handler for you... 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...
mikehunt114 Posted November 16, 2006 Author Share Posted November 16, 2006 Might be a silly question, but I'm gonna ask it anyways. Is using _IEErrorHandlerRegister the same as the error log produced through Scite? IE Dev ToolbarMSDN: InternetExplorer ObjectMSDN: HTML/DHTML Reference Guide[quote]It is surprising what a man can do when he has to, and how little most men will do when they don't have to. - Walter Linn[/quote]--------------------[font="Franklin Gothic Medium"]Post a reproducer with less than 100 lines of code.[/font] Link to comment Share on other sites More sharing options...
Moderators big_daddy Posted November 16, 2006 Moderators Share Posted November 16, 2006 It traps COM Errors rather than them terminating your script and reports detailed information about the error to the console in SciTE. Link to comment Share on other sites More sharing options...
mikehunt114 Posted November 16, 2006 Author Share Posted November 16, 2006 It traps COM Errors rather than them terminating your script and reports detailed information about the error to the console in SciTE.Ok, yeah, that's what I've been using, thanks. IE Dev ToolbarMSDN: InternetExplorer ObjectMSDN: HTML/DHTML Reference Guide[quote]It is surprising what a man can do when he has to, and how little most men will do when they don't have to. - Walter Linn[/quote]--------------------[font="Franklin Gothic Medium"]Post a reproducer with less than 100 lines of code.[/font] 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