I remember building something similar about ten years ago for Windows using the accessibility APIs to extract menus from applications.
To my chagrin, a great many applications, including those shipping with Windows (even the explorer, iirc) and almost everything using fancy UIs or various toolkits (GTK, Tk and Java apps I think, Qt worked) don't expose their menus through them, which made it pretty useless.
To my chagrin, a great many applications, including those shipping with Windows (even the explorer, iirc) and almost everything using fancy UIs or various toolkits (GTK, Tk and Java apps I think, Qt worked) don't expose their menus through them, which made it pretty useless.