Jump to content
Sign in to follow this  
ganesh

VBA and AutoIT DLL

Recommended Posts

ganesh

Hi All,

Iam new for AutoIT automation tool. I need to use the feature of AutoIT in my VBA project.

Like Mouse,Keyboard,Windows and so on......

My question are

1) How I can use the AutoIT DLL file in my VBA project?

2) How may I know which methods are written under that Library DLL file.

3) By how way I can create the object of AutoIT ?

Really your Answer and Suggestion will much helpful to me.

Best Regards,

Ganesh

Share this post


Link to post
Share on other sites
PsaltyDS

Install AutoIt and look at the help file under the AutoItX folder, which is specific to the ActiveX/DLL version. Most functions have working example scripts written in VBScript making calls to the AutoItX functions.

Note there is also a separate forum for AutoItX help.

:mellow:


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites
ganesh

Thanks you replay

I saw there are lots of example.

But Please see my question.

If I install the AutoIt Tool then I can use the DLL file in this way.

1) Is it correct method?

Dim autoItObj As AutoItX3

Set autoItObj = New AutoItX3

OR

Public autoItObj As Object

Set autoItObj = CreateObject("AutoItX3.Control")

OR

Dim autoItObj

Set autoItObj = CreateObject("AutoItX3.Control")

2) Iam trying to use the AutoItX3.DLL file directly without installing the AutoItX3.

Could you know how to use this DLL file in VBA project?

3) By how way I Can use AutoItX3.DLL file without registering the DLL file

{regsvr32 c:\fullpathTo\AUTOITX3.DLL}

Thanks in advance.

Best Regards,

Ganesh Bhagat

Edited by ganesh

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.