Jump to content

Get item's text in SysListView32 when item has checkbox and image


VAN0
 Share

Recommended Posts

Hello.

I'm trying get text of an item inside CLASS:SysListView32; in uTorrent's add new torrent window.

ut.png

So far I can only retrieve text from second column (Size), but text from Name column is always empty

This old topic didn't get an answer, so I'm hoping 9 years later someone can help with it.

Here is a code I'm testing it with:

#include <GuiListView.au3>

$hWnd = WinGetHandle("[CLASS:#32770]", "Save As")
ControlFocus($hWnd, "", "SysListView321")
ControlListView($hWnd, "", "SysListView321", "Selectclear")
ControlListView($hWnd, "", "SysListView321", "Select", 0)
$hListView = ControlGetHandle($hWnd, "", "SysListView321")

$iIndex = ControlListView($hWnd, "", "SysListView321", "GetSelected")
$sText1 = _GUICtrlListView_GetItemTextString($hListView, $iIndex)
$sText2 = _GUICtrlListView_GetItemText($hListView, $iIndex, 0)
$sText3 = ControlListView($hWnd, "", "SysListView321", "GetText", 0)
$sText4 = ControlListView($hWnd, "", "SysListView321", "GetText", 0, 0)

MsgBox(0, "", $sText1 & @LF & $sText2 & @lf & $stext3 & @lf & $stext4)

 

Can anyone help?

 

Thank you.

Link to comment
Share on other sites

It starts with a spying app

  • AU3Inf

If 1 does not give you information you have to try the others.
If any off the spying tools gives you the text you know its reachable and if its simplespy that gives you the information you have to read / use the uiAutomation stuff

See FAQ number 31 for references https://www.autoitscript.com/wiki/FAQ

 

Link to comment
Share on other sites

Hello. It seems to be a Listview own draw Text. So you will be no able to get that text.

Between why you don't get that text from the others controls. There 2 other controls where you can get the text from...

 

Saludos

 

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