2 Replies Latest reply: Sep 11, 2013 6:19 AM by frameexpert RSS

    Keyboard shortcuts in custom commands

    frameexpert Community Member

      Hi. I am trying to specify Control+, as a keyboard shortcut in a custom FrameMaker command defined in an ExtendScript script. I am using this:

       

      var cmd1 = DefineCommand(1, "LinkToHeadingStepOne", "L1", "^,");
      

       

      The command works, but the keyboard shortcut doesn't. Any help would be appreciated. Thanks.

       

      Rick

        • 1. Re: Keyboard shortcuts in custom commands
          Russ Ward Community Member

          Hi Rick,

           

          This is a super late response and I only bumped into the thread because I was looking for something similar. Did you ever get this to work? I tried this for the first time yesterday and had no problems on FM11. When I issue something similar:

           

          cmd = DefineCommand(1111, "TestScriptCommand", "TestScriptCommand", "^q");

           

          ...Ctrl+q executes the command. It also works in combination with the "+" sign to require a Shift key press as well, at least with alphabetical characters. Maybe something weird about using a comma?

           

          Russ

          • 2. Re: Keyboard shortcuts in custom commands
            frameexpert Community Member

            Hi Russ,

             

            Thanks for the follow up. I got some of the letter keys to work, but I couldn't use the punctuation keys. FrameScript still rules :-).

             

            Rick