Skip to main content
Inspiring
May 2, 2023 11:23 AM UTC
Answered

Add a menu item to context menu (right click menu) in Adobe Illustrator

Hi everyone,

I'm trying to add a custom menu item to the context menu (right-click menu) in Adobe Illustrator. I'm wondering if anyone knows if this is possible using either the Adobe Illustrator SDK or ExtendScript, or any other method? If so, could you please share some guidance or resources on how to achieve this?

Thank you!

Nikhil BhojwaniCorrect answer
Inspiring
May 9, 2023 11:38 AM UTC

13 replies

Participant
Jun 28, 2024 2:54 AM UTC

Hi there,

Yes, you can add a custom menu item to the context menu in Adobe Illustrator using the Illustrator SDK or ExtendScript. For the SDK, set up your environment, create a plugin using AIUIMenu suite, implement the functionality, and deploy it in the Plug-ins folder. For ExtendScript, you can use something like:

javascript
var myMenuItem = app.menus.addMenuItem("myCustomMenuItem", "My Custom Item"); myMenuItem.onSelect = function() { alert("Custom menu item clicked!"); };

Save and run the script via File > Scripts > Other Script. For more details, check the Adobe SDK Guide and ExtendScript API. For an example of a well-organized menu, visit nandomenus.co.uk.

Translate
Charu Rajput
Community Expert
Community Expert
May 3, 2023 12:52 PM UTC

@Nikhil Bhojwani - You can request the feature here  https://illustrator.uservoice.com/

If you alreday requested, please share the link so that we can add vote for this feature.

Translate
Best regards
Inspiring
May 9, 2023 11:37 AM UTC
Rick E Johnson
Inspiring
May 9, 2023 12:00 PM UTC

I requested this, too, but never got confirmation that the request was approved. Here it is: https://illustrator.uservoice.com/forums/333657-illustrator-desktop-feature-requests/suggestions/46616905-sdk-access-to-add-items-to-contextual-menu

I wonder if now the votes will be divided between the two, making it seem half as popular as it is...

Translate
Rick E Johnson
Inspiring
May 2, 2023 2:11 PM UTC

I've been asking for this too for over 20 years now! I see Astute Graphics has implemented something that appears to use annotations to draw widgets near the cursor when a certain tool is active. That's a brilliant workaround.

 

Regular menu items are pretty easy to add, including heirarchical menus, pretty much anywhere in the main menu system. Panel flyout menus are also easy to add and use. I agree with you, though, it helps productivity when all the UI you need is in the area you're already looking. Having to take your eyes off your work to search around the screen and then fumble with the mouse takes time and breaks a user's continuity. That time adds up, and custom items in the contextual menu could really help.

Translate
Nikhil BhojwaniAuthorCorrect answer
Inspiring
May 9, 2023 11:38 AM UTC

Hey, thanks for the response.

I have requested for this feature, please go ahead and vote for it.

Link: https://illustrator.uservoice.com/forums/333657-illustrator-desktop-feature-requests/suggestions/46638691-allow-access-to-add-a-custom-menuitem-to-context-m

Translate
A. Patterson
Inspiring
May 2, 2023 12:29 PM UTC

Unfortunately, no, there is no way to add menuitems to the Adobe context menus. If you have your panel where you control the UI, yes, but otherwise no.

Translate
Inspiring
May 2, 2023 12:32 PM UTC

Thanks for the quick response, I appreciate it.

Just to confirm, but we can add Menu Items to the Adobe File Menu Drop Down, right ?

Translate
A. Patterson
Inspiring
May 2, 2023 12:36 PM UTC

Yes, you can pretty much add a menuitem anywhere in the application menu system. I'm not sure if there are any off-limit spots, but I don't think so.

Translate