Defskerus Posted June 12, 2008 Share Posted June 12, 2008 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 ! Link to comment Share on other sites More sharing options...
Defskerus Posted June 13, 2008 Author Share Posted June 13, 2008 Hi again !I solve my problem ! First Step:To register the COM interface:1. Open a command prompt2. Change directory (using CD) to the directory that contains AutoItX3.dll3. Type regsvr32.exe AutoItX3.dll and press enterSecond 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: http://www.vex.net/~cthuang/tcom/tcom-3.9.zip2. put tcom/lib/Banking and tcom/lib/tcom where Tcl libs are link for this step: http://wiki.tcl.tk/1821Third Step :In your tcl script :package require tcomset AutoIT [::tcom::ref createobj AutoItX3.Control]$AutoIT WinMinimizeAllIt was very easy but I'm a new user so... 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