goldenix Posted December 6, 2008 Share Posted December 6, 2008 (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 December 6, 2008 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] Link to comment Share on other sites More sharing options...
cageman Posted December 6, 2008 Share Posted December 6, 2008 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. Link to comment Share on other sites More sharing options...
goldenix Posted December 6, 2008 Author Share Posted December 6, 2008 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] 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