hi,
thank you for your responses. Really appreciate them
@ TurionAlte: yes , you are right, the scenario is that AutoIT should read the value in another program's progress bar. I was able to resolve this issue by monitoring the window's Status Bar. Because upon first load, the Status Bar says "Restoring Details". When the data are completely loaded to the listbox, the status becomes "Ready". The below code solves my problem:
Do
$var = StatusbarGetText("MyWindow")
Sleep(1000)
Until $var = "Ready"
If (StatusbarGetText("MyWindow") = "Ready") Then
ControlListView("MyWindow", "", "SysListView321", "SelectAll")
EndIf
I've got one problem though. The Delete Button is inside a Toolbarwindow. Any idea how to access the buttons in a ToolbarWindow? I tried ControlClick but to no avail. Thanks a lot.