AutoitMike Posted September 8, 2017 Posted September 8, 2017 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
Danyfirex Posted September 9, 2017 Posted September 9, 2017 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 Danysys.com AutoIt... UDFs: VirusTotal API 2.0 UDF - libZPlay UDF - Apps: Guitar Tab Tester - VirusTotal Hash Checker Examples: Text-to-Speech ISpVoice Interface - Get installed applications - Enable/Disable Network connection PrintHookProc - WINTRUST - Mute Microphone Level - Get Connected NetWorks - Create NetWork Connection ShortCut
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