#include <GUIListBox.au3>
$hList = ControlGetHandle("[Title:Instant Hand History; Class:#32770]", "", "[CLASS:PokerStarsListClass; INSTANCE:1]")
If Not $hList Then
MsgBox(16, "Error", "ControlGetHandle")
Exit
EndIf
$iCount = _GUICtrlListBox_GetCount($hList)
If $iCount = 0 Then
MsgBox(16, "Error", "_GUICtrlListBox_GetCount")
Exit
EndIf
For $i = 0 To $iCount - 1
MsgBox(64, $i + 1 & " (" & $iCount & ")", "Text: " & _GUICtrlListBox_GetText($hList, $i))
Next