Function find_context_menu_window

Source
pub fn find_context_menu_window() -> Option<HWND>
Expand description

Finds the current context menu window using an undocumented trick.

Note that you can send the undocumented message 0x1e5 to the window in order to select an item, specify the item index as the wparam. (Leave lparam as 0.) Then you can activate that item (to for example open a submenu) by sending a WM_KEYDOWN message with the VK_RETURN key.

ยงReferences