Jump to content

Using WinList in Word VBA


AutoitMike
 Share

Recommended Posts

I am currently using Autoit's "WinList" function in an Autoit script, I fully understand it.

Autoit provides a nice Library for Word VBA so that Some of Autoit's functions can be used within a MSWord VBA script, some of which I am using.

I have a use for Autoit's "WinList" function which has been provided by AutoIt in their Library for MSWord VBA scripting. The WinList function Creates an array when run. MSWord VBA does not seem to allow this. To create an array in VBA you have to first DIM it, and this does not seem to work for the WinList function.

For example:

Dim AutoIt As New AutoItX3Lib.AutoItX3

MyArray= Autoit(WinList)  produces an error, whether I dim the array or not. 

It seems that AutoIt has provided a function for VBA that cant be used ??

Can someone figure out a way to use WinList within Word VBA?

Thanks

 

Link to comment
Share on other sites

Hello. All COM AutoIt functions exposed are no 100% functional. The return value from Winlist seems to be no compatible with vba (It could be done but it would need some memory+Api advanced stuff) So consider to use a VBA alternative or write your own WinList Function using windows API.

 

Saludos

Link to comment
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
 Share

×
×
  • Create New...