Re: Descr Programming w/ WinMenu
Function GetMenuItems( oMenu, Itm )
MenuCnt = oMenu.GetItemProperty( Itm, "SubMenuCount")
Menu_Items = ""
For i=1 to MenuCnt
' Build a path to a submenu
mPath = Window("Notepad").WinMenu("Menu").BuildMenuPath(It m, i)
' Capture the label of the submenu
Menu_Items = Menu_Items & oMenu.GetItemProperty(mPath, "Label")
If i < MenuCnt Then
Menu_Items = Menu_Items & ";"
GetMenuItems = Menu_Items
Descr Programming w/ WinMenu
When I perform a record on Edit->Copy, QTP gives me a string of objects...for the most part I can code with DP. However, with WinMenu, if I try to use the object spy, I only get the application parent window. I cannot actually ID the WinMenu. However, with DP, it is critical that I get the attributes of the menu item. Again with record playback, I get something like:
How do I identify the Menu item? I've tried the following (guesses) and no luck:
Any help appreciated!