Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Get menu state
#6
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
Code:
Copy      Help
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).


   
 


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)