VAN0 Posted August 14, 2017 Share Posted August 14, 2017 Hello. I'm trying get text of an item inside CLASS:SysListView32; in uTorrent's add new torrent window. 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 More sharing options...
junkew Posted August 15, 2017 Share Posted August 15, 2017 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 FAQ 31 How to click some elements, FAQ 40 Test automation with AutoIt, Multithreading CLR .NET Powershell CMDLets Link to comment Share on other sites More sharing options...
VAN0 Posted August 15, 2017 Author Share Posted August 15, 2017 So far I'm unable retrieve text from "Name" column with any spying tools Link to comment Share on other sites More sharing options...
Danyfirex Posted August 15, 2017 Share Posted August 15, 2017 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 Danysys.com AutoIt... UDFs: VirusTotal API 2.0 UDF - libZPlay UDF - Apps: Guitar Tab Tester - VirusTotal Hash Checker Examples: Text-to-Speech ISpVoice Interface - Get installed applications - Enable/Disable Network connection PrintHookProc - WINTRUST - Mute Microphone Level - Get Connected NetWorks - Create NetWork Connection ShortCut Link to comment Share on other sites More sharing options...
VAN0 Posted August 16, 2017 Author Share Posted August 16, 2017 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. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now