Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 240
  • Last Modified:

Extracting Menu Array from an Application

My goal is to produce training that includes simulated menus from a variety of applications (Word, Excel, Dreamweaver, etc.). Part of the procedure for creating the training will be to come up with a list of sub- and sub-sub menu under each of the applications top-level menus. For example, for the menus in IE, I need a text file with info something like this:

File
 New
  Window
  <divider>
  Message
  Post
 Open
 Edit
...

I don't want to do this by hand, but want an app that will get the list of menu items automagically. (Years ago I came across an app that would suck the menus out of an application and throw them into an array in a text file, but can't find anything like it now.)
 
My question: Do you know of an application (or some source code) that can give me a menu-item list if I point it at a application?

Thanks. Jim

 
0
jrubino
Asked:
jrubino
1 Solution
 
keitha1Commented:
In general, an automatic resource extractor wouldn't be reliable because a great deal of software will build the menu's on the fly inside the program.

But if you still want, here is a link to a freeware resource extractor. The output is a little goofy and is dumped under the directory where you install this program.


http://demosten.com/resextr/
0
 
DanRollinsCommented:
Have you tried the GetMenu(), GetMenuItemCount(), and GetMenuItemInfo() APIs?  There is some chance that GetMenuItemInfo() will fail when trying to access a menu in an external program.  In that case, there are a couple of workarounds.

Anyway, please notice that all high-powered programs like Word and Excel allow for user customization and even the latest wrinkle in which seldom-used menu items are hidden.  Thus, you have set youself a difficult task.  Plrobaly easier to just write them down.

-- Dan
0
 
jrubinoAuthor Commented:
Nice suggestion, but the resource extractor didn't give me any menus.

Yes, Dan, GetMenu(), GetMenuItemCount(), and GetMenuItemInfo are my plan B. I just didn't want to re-invent something already available. Writing the menus by hand is plan C, but a tool could save us hundreds of hours/year.

Thanks.

Jim
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
MattRobbCommented:
0
 
jrubinoAuthor Commented:
Thanks, Matt. This will do a lot of work for me.

For some reason, though, it does not work with Microsoft products. Any ideas?

Jim
0
 
MattRobbCommented:
That’s because Microsoft doesn’t use standard menus in this products. Actually some of them don’t have a menu at all. Instead they have a toolbar, for instance, with buttons displaying only text.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now