02-27-2012, 07:47 PM
(This post was last modified: 02-27-2012, 07:48 PM by inborntester.)
could you please try like below.
Code:
n=Window("My Computer").WinTreeView("SysTreeView32").GetROProperty("items count")
sorted = true
For i=0 To n-2 step 1
before=Window("My Computer").WinTreeView("SysTreeView32").GetItem(i)
after=Window("My Computer").WinTreeView("SysTreeView32").GetItem(i+1)
If before > after Then
sorted = false
Exit For
End If
Next
msgbox(sorted)