amokoura Posted June 23, 2008 Share Posted June 23, 2008 (edited) I saw Weaponx mentioned a trick to use .NET classes in AutoIt. In his example some Collection class was used. The idea is thrilling: instead of building some weak structures in AutoIt, how about using just some .NET classes. There might be many possibilities, but the Collections fascinate me the most. I just don't like AutoIt arrays and array funcs.Question: Could there be any drawbacks in using .NET classes for making AutoIt scripts in steroids?Of course a small script requiring a full .NET package is sort of a bummer. Let's just assume every pc where the script is run has the framework. Edited June 24, 2008 by amokoura Link to comment Share on other sites More sharing options...
weaponx Posted June 24, 2008 Share Posted June 24, 2008 There are other examples here:http://www.autoitscript.com/forum/index.ph...em++collectionshttp://www.autoitscript.com/forum/index.ph...em++collections Link to comment Share on other sites More sharing options...
amokoura Posted June 24, 2008 Author Share Posted June 24, 2008 (edited) Thanks!Especially this link was helpful http://technet.microsoft.com/en-us/magazine/cc162521.aspxIt's just great. Instead of this:For i = (UBound(arrNames) - 1) to 0 Step -1 For j= 0 to i If UCase(arrNames(j)) > UCase(arrNames(j+1)) Then strHolder = arrNames(j+1) arrNames(j+1) = arrNames(j) arrNames(j) = strHolder End If Next NextI can have this:DataList.Sort() Edited June 24, 2008 by amokoura 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