1 Reply Latest reply on Oct 1, 2013 6:05 AM by cbuliarca

    How to set hotkey for my extension

    KickerDev

      I have found "Extensions" in "Keyboard Shortcuts", but it's empty:

      http://webftp.meridian93.com/2012-09-29_2043_001.png

        • 1. Re: How to set hotkey for my extension
          cbuliarca Level 3

          You can create a javascript in your presets>scripts directory and create a shortcut for this script.

           

          Here is the js code that you will need to open a panel:

           

          function openPanel(Name) {

              var desc1 = new ActionDescriptor();

                  var ref1 = new ActionReference();

                  ref1.putName( charIDToTypeID('Mn  '), Name);

              desc1.putReference( charIDToTypeID('null'), ref1 );

              try{

              executeAction( charIDToTypeID('slct'), desc1, DialogModes.NO );

              }catch(e){}

          };

           

          openPanel("your panel name");