[python-win32] how can i find the index of a control?

karthik karthik karthik19_20 at yahoo.com
Tue Feb 10 04:09:56 EST 2004


hi!

i scanned a window say, 'Find' dialog box of notepad,
i am able to access all the controls of the 'Find'
dialog using the Accessible object of pyAA.

suppose, the treeview looks like this:
Find(window)
    NAMELESS(titlebar)
         IME(push button)
         Minimize(push button)
         Maximize(push button)
         Context help(push button)
         Close(push button)

now, if i loop through the accessible object of the 
find(window), i'm able to access the names,
description, location of each control.

i want to get the index of each control meaning,
index of IME is 1
index of Minimize is 2
index of Maximize is 3
index of Context help is 4
index of Close is 5

i'm unable to do this.
is there any way to get this either using pyAA or
win32?





=====
thanks and regards,
Karthik.

__________________________________
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html



More information about the Python-win32 mailing list