Sign in to follow this  
Followers 0
Ilikeauto783

Can I use "IE.au3" functionality in AutoItX ?

7 posts in this topic

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.

Share this post


Link to post
Share on other sites



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.

Share this post


Link to post
Share on other sites

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!

Share this post


Link to post
Share on other sites

#4 ·  Posted (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 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

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.

Share this post


Link to post
Share on other sites

#6 ·  Posted (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 by Ilikeauto783

Share this post


Link to post
Share on other sites

Yeah, using an indirect COM reference through a COM component would be rather confusing and inefficient.

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