Home | Blog | Software | Reviews and Features | Forum | Help | Donate | About us

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • October 21, 2016, 11:52:14 AM
  • Proudly celebrating 10 years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: [Feature request/Plugin idea] Access last window menus  (Read 2590 times)


  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 231
    • View Profile
    • Donate to Member
[Feature request/Plugin idea] Access last window menus
« on: May 01, 2010, 09:14:33 AM »
It would be very cool if FARR could access other application's menus, like Quicksilver for Mac does. I was looking through the window api a bit and there is a possibility to get window menus using window handle, but I was unable to make it work. I could see problems with getting the menus of some apps like Office 2007 etc, but what I am really interested is to make it work with at least Notepad++.

It is impossible to make anything foolproof because fools are so ingenious.


  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 2,844
    • View Profile
    • Donate to Member
Re: [Feature request/Plugin idea] Access last window menus
« Reply #1 on: May 07, 2010, 04:09:08 PM »
May be you know the following already, but FWIW:

IIRC, QS used MacOS X's Accessibility API for this (at least at one point).  For Windows, there's:


with interesting-sounding tibdits like "UI Automation".  Don't know if any of that would be useful in the current context though.

AHK has WinMenuSelectItem and here's some extract from its docs:

...However, some windows might need to be in a non-minimized state.

This command will not work with applications that use non-standard menu bars. Examples include Microsoft Outlook and Outlook Express, which use disguised toolbars for their menu bars. In these cases, consider using ControlSend or PostMessage , which should be able to interact with some of these non-standard menu bars.

May be some of those things in combination with %LASTHWND% would let a plugin or alias do something relevant.