Jump to content

Recommended Posts

Posted

This is the script as it is now. It will list the file(s) (directories and wildcards are supported, as dir allows). I have yet to write the adlib to update the sizes. And the sorting is funky.

Sorry about the sorting, wasn't sure if the logic was correct, this should fix it.

$val3 = 0
    $val4 = 0
    ; If it is the 2nd colum (columns starts with 0)
    $val1 = GetSubItemText($listview, $nItem1, $nColumn)
    $val2 = GetSubItemText($listview, $nItem2, $nColumn)

    If $nColumn = 1 Then
        $val1 = Number($val1)
        $val2 = Number($val2)
        $val3 = GetSubItemText($listview, $nItem1, $nColumn + 1)
        $val4 = GetSubItemText($listview, $nItem2, $nColumn + 1)
    ElseIf $nColumn = 2 Then
        $val3 = Number(GetSubItemText($listview, $nItem1, $nColumn - 1))
        $val4 = Number(GetSubItemText($listview, $nItem2, $nColumn - 1))
    EndIf

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...