Sign in to follow this  
Followers 0
amokoura

[solved] Using .NET classes

3 posts in this topic

#1 ·  Posted (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 by amokoura

Share this post


Link to post
Share on other sites



#3 ·  Posted (edited)

Thanks!

Especially this link was helpful http://technet.microsoft.com/en-us/magazine/cc162521.aspx

It'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
Next

I can have this:

DataList.Sort()

:):P:P

Edited by amokoura

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  
Followers 0