Jump to content
Sign in to follow this  

How tu use AutoIt with Tcl ?

Recommended Posts


Hi !

I'm a new user of AutoIt and Tcl and I have to use them together.

I have to write a Tcl program and I want to use AutoIt functions.

I looked in the forum and saw that it was possible.

The only problem is that I don't know what command line (like a include in C but in Tcl ) I have to write to import AutoIt functions in my Tcl program.

Is someone know how to do ?

Thanks and sorry for my poor english, I'm french and tired after a hard afternoon to try to make this ! :)

Share this post

Link to post
Share on other sites

Hi again !

I solve my problem !

First Step:

To register the COM interface:

1. Open a command prompt

2. Change directory (using CD) to the directory that contains AutoItX3.dll

3. Type regsvr32.exe AutoItX3.dll and press enter

Second Step :

1. get tcom-3.9.zip from http://www.vex.net/~cthuang/tcom/

If the link does not work it is probably because a newer version is online:


2. put tcom/lib/Banking and tcom/lib/tcom where Tcl libs are

link for this step: http://wiki.tcl.tk/1821

Third Step :

In your tcl script :

package require tcom

set AutoIT [::tcom::ref createobj AutoItX3.Control]

$AutoIT WinMinimizeAll

It was very easy but I'm a new user so...

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.