Ilikeauto783 Posted September 14, 2006 Share Posted September 14, 2006 I would like to control Internet Explorer using AutoItX. Is there some way to use "#include <IE.au3>" or something similar to call up this function. Thank You in advance. Link to comment Share on other sites More sharing options...
Richard Robertson Posted September 15, 2006 Share Posted September 15, 2006 AutoItX does not support #include. #include has to do with interpretting a file, which AutoItX does not do. You can translate the functions to your calling language and it should work just fine. Link to comment Share on other sites More sharing options...
Ilikeauto783 Posted September 15, 2006 Author Share Posted September 15, 2006 I'm sorry I don't understand what you mean by "translate the functions to your calling language". Is there any way you could give an example? Im using C# if that helps any. thank you very much! Link to comment Share on other sites More sharing options...
DaleHohm Posted September 15, 2006 Share Posted September 15, 2006 (edited) You asked about IE.au3 as an example. IE.au3 uses the COM support in AutoIt, which is not available in AutoItX. Instead, you must use the native COM interfaces in your low(er)-level language and call the COM functions directly (CreateObject for example). You cannot use the UDF libraries directly, so you must (re)implement their convenience functionality in the language from which you are calling AutoItX. Dale Edit: fixed funny typos Edited September 16, 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...
Richard Robertson Posted September 15, 2006 Share Posted September 15, 2006 In C#, you must reference the COM objects yourself and make calls through them. I won't bother translating the code from AutoIt to C#. Just read IE.au3 and convert it to C#. It's not hard. Link to comment Share on other sites More sharing options...
Ilikeauto783 Posted September 16, 2006 Author Share Posted September 16, 2006 (edited) Ok, I get what your saying now, I've actually done the com method in the past. I was just hoping that I could use AutoIt becaue it works so nicely. I really like the ie.au3 it works quite nicely. Thanks a bunch, I appreciate the response. Edited September 16, 2006 by Ilikeauto783 Link to comment Share on other sites More sharing options...
Richard Robertson Posted September 16, 2006 Share Posted September 16, 2006 Yeah, using an indirect COM reference through a COM component would be rather confusing and inefficient. 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