03-07-2019, 06:15 AM
Sorry to kick this up.
But how do you output the menu id of an submenu item, when the application uses normal menu's.
Example, notepad++ I can see the menu id in QM (lower left corner in QM).
And I can use the "men" command.
But now I want to output this id's
For example, I can output all the menu names from the "Search" menu
Macro Macro99
But how do I output the id's of ac (if possible)?
Note: I had to use an empty rolename, because the child rolename was MENUPOPUP "context" and I had to target tit's childeren, but the problem is there are multiple MENUPOPUP "context". With the above method I could target the childeren. I could not succeed using "first" (child).
But how do you output the menu id of an submenu item, when the application uses normal menu's.
Example, notepad++ I can see the menu id in QM (lower left corner in QM).
And I can use the "men" command.
But now I want to output this id's
For example, I can output all the menu names from the "Search" menu
Macro Macro99
int w=win("Notepad++" "Notepad++")
Acc a.Find(w "" "Search" "class=Notepad++" 0x1005 0 0 "Child1")
ARRAY(Acc) ac
a.GetChildObjects(ac)
int i
for i 0 ac.len
,out ac[i].Name
But how do I output the id's of ac (if possible)?
Note: I had to use an empty rolename, because the child rolename was MENUPOPUP "context" and I had to target tit's childeren, but the problem is there are multiple MENUPOPUP "context". With the above method I could target the childeren. I could not succeed using "first" (child).