Jump to content

[Solved] How to get the Selected Item Text, in IE7's "Manage Add-ons" window?


Recommended Posts

Hi

If you open IE7,

Menu: Tools\Manage Add-ons\Enable or Disable Add-ons

You have in this window in the middle, something that looks like a ListView.

(tho AutoIt Window Info shows Class="Static" for it)

How do I get the Selected Item's Text there?

Thank you

Edited by Zohar
Link to comment
Share on other sites

#include <Array.au3>
#include <GuiListView.au3>

Dim $hAdds = WinGetHandle('Manage Add-ons')
Dim $hSysListView32 = ControlGetHandle($hAdds, 'FolderView', 1)

Dim $iCount = _GUICtrlListView_GetItemCount($hSysListView32)
Dim $aItems[$iCount]

For $i = 0 To $iCount-1
    $aItems[$i] = _GUICtrlListView_GetItemText($hSysListView32, $i)
Next

_ArrayDisplay($aItems)

Mine is IE7 and it's still SysListView32.

Use WinSpy if AutoIt Window Info can't get this item although AutoIt Window Info is great tool and sufficient most of the time and much simpler and friendly than WinSpy (;])

Link to comment
Share on other sites

well..

I tried your code and it works on my machine...

Thank you. this solves my problem.

I was curious, so I loaded AutoIt Window Info again, and checked again for the class of the Listview there, and it's still "Static".

I then loaded MS Spy++(which comes with Visual Studio), and checked again for the class of the Listview there, and surprisingly it's "SysListView32".

(I attached a screen capture of both tools)

Now I ask my self how can this happen?

2 Window Info Tools, pointing at the same Window and same Control, give a different result?

post-45260-1235991882_thumb.png

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