Skip to main content
Inspiring
May 5, 2011
Question

Can we assign a hotkey to a plugin through code?

  • May 5, 2011
  • 1 reply
  • 1477 views

Hello!

I am relatively new to Photoshop Plugin development. I have been learning as well as implementing whatever I learn. In this process, I succeeded in developing an Automation plugin for Photoshop CS 5. The plugin works quite well. Everything is perfect.

But, now I am in need of assigning a hotkey or a keyboard shortcut to my plugin. This can very well be done through Edit ->Keyboard Shortcuts

But that will limit that shortcut to my own system. If I want to include my plugin in another machine, then these shortcuts would have to be reassigned manually.

What I am looking for is, whether this shortcut assignment can be done through code or not.

Another option I came up with, was to include my own "Keyboard Shortcuts Primary" file  contained in the Application Data\Adobe\Adobe Photoshop CS5\Adobe Photoshop CS5 Setting  folder which contains all the keyboard shortcuts for Photoshop. But that will cause the user's file to be overwritten. So, that is not an ideal course to go for.

Please suggest something!

Cheers..! 

This topic has been closed for replies.

1 reply

Chris Cox
Legend
May 6, 2011

No, you cannot.

You can assign a function key to an action, and that action can call a specific plugin (with or without arguments).