Jump to content
Sign in to follow this  

Problem in ListView

Recommended Posts


I have a ListView with below control details


while trying to use the functions ControlListView and _GUICtrlListView nothing is happening in my application(EX - Application1). I tried with another application(Ex - Application2) there the mentioned functions are working. I don't know where the problem is, might be in my application. But I want to work on the application in any way. Are there any different ways to work such type of application.

Below is the snapshot of my application which have ListView.


Below is the script what I written for the applications (Application1 and Application2)

#Include <GuiListView.au3>

$hWnd = ControlGetHandle("CSDB for S1000D Projects","","TLiveGrid1")

MsgBox(1,"Check",$hWnd) ;(Returns the Handle of the Control)

$count = _GUICtrlListView_GetitemCount($hWnd)

MsgBox(1,"Check",$count); (Returns Zero)

Can any one please help me out in this issue. Thanks in advance

Edited by sagirajuramaraju

Share this post

Link to post
Share on other sites

ControlListview() and _GUICtrlListview_xxx() works only with STANDARD window's ListView control.

I think this your control is non-standard one.

Possible way is only ControlSend()+ControlGetText() or OCR or memory reading as far as I know.

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
Sign in to follow this