Jump to content

Can't get List View values from the App.


Vasud
 Share

Recommended Posts

I can't able to get the list data from windows screen. I did mention the control info as follows,

>>>> Window <<<<
Title:    xxxxxxxxxxxx
Class:    TFrm_xxxxxx
Position:    0, 0
Size:    1366, 728
Style:    0x17C80000
ExStyle:    0x00010100
Handle:    0x0000000000710230

>>>> Control <<<<
Class:    TtsDBGrid
Instance:    1
ClassnameNN:    TtsDBGrid1
Name:    
Advanced (Class):    [CLASS:TtsDBGrid; INSTANCE:1]
ID:    20122294
Text:    
Position:    0, 52
Size:    1360, 647
ControlClick Coords:    559, 74
Style:    0x54310000
ExStyle:    0x00000200
Handle:    0x0000000001330AB6

>>>> Mouse <<<<
Position:    562, 152
Cursor ID:    0
Color:    0xE1F0FF

>>>> StatusBar <<<<

>>>> ToolsBar <<<<

>>>> Visible Text <<<<
ROD


>>>> Hidden Text <<<<

My Code is-

Local $hControl = ControlGetHandle("Patient List", "", "[CLASS:TtsDBGrid; INSTANCE:1]")

MsgBox($MB_SYSTEMMODAL, "Information", "Item Count: " & _GUICtrlListBox_GetCount($hControl))
 MsgBox($MB_SYSTEMMODAL, "Information", "Item Count: " & _GUICtrlListView_GetItemCount($hControl))

And ITEM count returned in msgbox is 0.

But i have more than ten rows of list on my windows.

Can anyone help to me sort this issue.

Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...