Get Info from Context Menu (x64/x32 compatible)

Post your working scripts, libraries and tools
User avatar
jeeswg
Posts: 2659
Joined: 19 Dec 2016, 01:58
Location: UK

Get Info from Context Menu (x64/x32 compatible)

19 May 2017, 15:37

This is an AHK v1.1 x64/x32 compatible update of the script, by Micha, at:
Get Info from Context Menu - Scripts and Functions - AutoHotkey Community
https://autohotkey.com/board/topic/19754-get-info-from-context-menu/

There are two almost identical scripts there, this script is based on the one just after: 'Another code which retrieves the commandID', and unlike the other script contains the function GetContextMenuID(hWnd, Position).

The script to display WM_COMMAND IDs. When you hover over a menu item, a ToolTip appears displaying information about the menu items.

Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus



A script to show how to use the menu item IDs to invoke menu items.

Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus



A script to show how to send a menu item ID to every control that belongs to a window, to see if it invokes the menu item.

Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus

Last edited by jeeswg on 19 Jul 2017, 16:01, edited 6 times in total.

Return to “Scripts and Functions”

Who is online

Users browsing this forum: Delta Pythagorean and 16 guests