jinbaba Posted July 9, 2008 Share Posted July 9, 2008 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 Link to comment Share on other sites More sharing options...
NerdFencer Posted July 9, 2008 Share Posted July 9, 2008 I don't know exactly the "right" way, but you could try automating the keystrokes/clicks to do it with Send, and MouseClick _________[u]UDFs[/u]_________-Mouse UDF-Math UDF-Misc Constants-Uninstaller Shell Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted July 9, 2008 Share Posted July 9, 2008 (edited) 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 July 9, 2008 by AdmiralAlkex .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
jinbaba Posted July 10, 2008 Author Share Posted July 10, 2008 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 More sharing options...
AdmiralAlkex Posted July 10, 2008 Share Posted July 10, 2008 (edited) 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 forumsThe latest Shareaza is 2.3.1.0 and can be found at the official website Edited July 10, 2008 by AdmiralAlkex .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface 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