Sign in to follow this  
Followers 0
Zohar

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

5 posts in this topic

#1 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites



I tried it and the class name was SystemListView32. I am using Internet Explorer 8 Beta 2.


[font="Verdana"] [size="2"]"[/size][/font]Failure is not an option -- it comes packaged with Windows"[font="Verdana"][size="2"] Gecko Web Browser[/size][/font][font="Verdana"][size="2"], [/size][/font][font="Verdana"][size="2"]Yahtzee![/size][/font][font="Verdana"][size="2"], Toolbar Launcher (like RocketDock)[/size][/font][font="Verdana"][size="2"]Internet Blocker, Simple Calculator, Local Weather, Easy GDI+ GUI [/size][/font][font="Verdana"][size="2"]Triangle Solver, TCP File Transfer, [/size][/font][font="Verdana"][size="2"]Valuater's Autoit Wrappers[/size][/font][font="Verdana"][size="3"][size="2"][size="2"]OOP In AutoIt[/size][/size][/size][/font][font="Verdana"][size="2"][size="1"]Using Windows XP SP3, 1GB RAM, AMD Athlon Processor @ 2.1 GHzCheck me out at gadgets.freehostrocket.com[/size][/size][/font]

Share this post


Link to post
Share on other sites

cool..

tho I will not install a beta, so I am still with IE7 :P

I hope someone knows how to do it

Share this post


Link to post
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 (;])

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

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

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
Sign in to follow this  
Followers 0