Jump to content

Can't get List View values from the App.

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
Advanced (Class):    [CLASS:TtsDBGrid; INSTANCE:1]
ID:    20122294
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 <<<<

>>>> 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.

Share this post

Link to post
Share on other sites

Thanks for your response  Danp2...

Link which you sent is too long. Since i need quick solution, can you help me out with the script that will get items from list view.

  • Confused 1

Share this post

Link to post
Share on other sites

What is link too long mean?

Edited by Earthshine

My resources are limited. You must ask the right questions


Share this post

Link to post
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