| || |
Object Spy and menus
I'm trying to describe a menu object (and a context menu object as well) and have tried to use Object Spy to see what identifying properties I've got to work with. I'm pretty new to descriptive programming which might explain some of my frustration. (On the bright side, I've managed to write some tests using DP and am generally happy with it.)
I hold the CTRL key, bring up the menu, release CTRL, and--with the pointer back to the hand--click the menu item. What I see in the Spy dialog is the window object behind the menu, rather than the menu object itself.
Can someone verify the Object Spy doesn't work as the manual indicates? Also--and more importantly--can someone give me a list of potential identifying properties (what's the nativeclass, for example) of a menu and context menu.
Re: Object Spy and menus
I should point out this is not a web app; it's an Eclipse/Java app. Its objects appear as Windows objects. The following--used in various combinations--has failed to work. Part of the problem, I believe, is that I'm working in the dark, relative to what properties may have values that help discern this object.
Set ProjCtxMenu = Description.Create()
ProjCtxMenu("menuobjtype").Value = 3
'ProjCtxMenu("enabled").Value = "True"
'ProjCtxMenu("HasSubMenu").Value = "True"
'ProjCtxMenu("text").Value = "New(.|\n)*"
Any suggestions are greatly appreciated!