Jump to content

Recommended Posts

Posted (edited)

The array is sorted but I cant access it anymore after it has been sorted. Array length is returned nothing. Have a look.

Global $var

#include <Array.au3>

    $var = WinList()

    _ArraySort($var)
    _ArrayDisplay($var, "AFTER _ArraySort() ascending" )    
    
    ConsoleWrite($var[0][0] & @CRLF)

    For $i = 1 to $var[0][0]
        ConsoleWrite($var[$i][0] & @CRLF)
    Next
Edited by goldenix
My Projects:[list][*]Guide - ytube step by step tut for reading memory with autoitscript + samples[*]WinHide - tool to show hide windows, Skinned With GDI+[*]Virtualdub batch job list maker - Batch Process all files with same settings[*]Exp calc - Exp calculator for online games[*]Automated Microsoft SQL Server 2000 installer[*]Image sorter helper for IrfanView - 1 click opens img & move ur mouse to close opened img[/list]
Posted

im not sure but the problem is probably the fact that WinList() returns a 2d array so you need to select the part you need to sort.

now it also use the length of the array in the sorting process.

So look at the arraysort function and make sure it starts from 1 instead of 0.

Posted

im not sure but the problem is probably the fact that WinList() returns a 2d array so you need to select the part you need to sort.

now it also use the length of the array in the sorting process.

So look at the arraysort function and make sure it starts from 1 instead of 0.

Aha I see. This solves the problem: Thanx

_ArraySort($var,0,1)
My Projects:[list][*]Guide - ytube step by step tut for reading memory with autoitscript + samples[*]WinHide - tool to show hide windows, Skinned With GDI+[*]Virtualdub batch job list maker - Batch Process all files with same settings[*]Exp calc - Exp calculator for online games[*]Automated Microsoft SQL Server 2000 installer[*]Image sorter helper for IrfanView - 1 click opens img & move ur mouse to close opened img[/list]

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
×
×
  • Create New...