Jump to content

Accessing List view Items


Recommended Posts

Hello Folks,

I am working on some scripts to automate some tasks on Shareaza P2P. I want to access record value of a particular column e.g. value of record 3 in column "Artist".

Currently I am trying to access 2nd element in each listview row, but I get empty string as elements text. Following is the code

#include <GuiConstantsEx.au3>
#include <GuiListView.au3>

;Minimize all windows
$oShell = ObjCreate("shell.application")
$oShell.MinimizeAll
WinActivate("Shareaza")

;Get handle to list view.
$handle = ControlGetHandle("Shareaza", "", "[CLASS:Shareaza_ListView; INSTANCE:2]")
$col_count = _GUICtrlListView_GetColumnCount($handle)

For $I = 0 To $col_count - 1
    $aItem = _GUICtrlListView_GetItem($handle, $I)
    $text = _GUICtrlListView_GetItemText($handle, $aItem, 2)
    MsgBox(0, "Information", "Row no: " & $I & "\nColumn Value: " &$text)
Next

I am attaching a snapshot of the Shareaza window and AutoIt info window.

Is it due to Shareaza not using Windows standard listview. Or something wrong with the way I am writing code?

Kindly guide me in right direction.

Regards,

Jinbaba

post-37672-1215599706_thumb.jpg

Link to comment
Share on other sites

I have used Shareaza for years and that doesn't look like Shareaza at all. Have you installed some theme or what? What version are you running?

Please post a screenshot of your "about" window or answer my previous questions.

Edited by AdmiralAlkex
Link to comment
Share on other sites

I have used Shareaza for years and that doesn't look like Shareaza at all. Have you installed some theme or what? What version are you running?

Please post a screenshot of your "about" window or answer my previous questions.

I am using following Shareaza Version "4.1.0.42580"

Link to comment
Share on other sites

I am using following Shareaza Version "4.1.0.42580"

I was afraid of this.... That is NOT Shareaza!! You have installed an adware that is monitoring everything you does and is extremely limited. I repeat, that is NOT Shareaza.

You need to uninstall that ASAP if you care about yourself or your computer.

To read more about the fake, including how to remove it and what it does to steal your money and privacy read the official Shareaza forums

The latest Shareaza is 2.3.1.0 and can be found at the official website

Edited by AdmiralAlkex
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...