VAN0

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

5 posts in this topic

#1 ·  Posted

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.

Share this post


Link to post
Share on other sites



#2 ·  Posted

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

 

Share this post


Link to post
Share on other sites

#3 ·  Posted

So far I'm unable retrieve text from "Name" column with any spying tools

Share this post


Link to post
Share on other sites

#4 ·  Posted

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

 

Share this post


Link to post
Share on other sites

#5 ·  Posted

In the screenshot it shows filename in 2 other places because this is a single file, with multiple files these 2 places show folder name instead.

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