How to get the text of menu items dynamically?
I wanted to print text of all the menu items into the text file for any given window application. Like, for ex, if the name of the application is entered as Notepad, then, i've to launch notepad and i've to print all its menu items to a text file. I'm getting the name of the application from the user. Typically, my output file should look like
File->Save As... etc
The same script should work for any application like for ex. calculator. I dont know how to get the text of this menu item dynamically and how to get the count of these menu items.
Thanx in advance.