No internet connection
  1. Home
  2. How to

How to HOLD COMMAND+ SHIFT and other Keyboard Modifiers?

By Reuven Amiel @Reuven_Amiel
    2021-01-23 06:07:47.282Z

    Hi,

    I want to hold Command and Shift (together) and release it at certain point

    I found this How to have SF hold down keyboard modifiers
    But need both at the same time

    Thanks!

    • 6 replies
    1. samuel henriques @samuel_henriques
        2021-01-23 11:17:01.932Z

        Hey @Reuven_Amiel, try this:

        sf.keyboard.modifiers({
            isCommand: true,
            isShift: true
        });
        

        check out this video where Kitch explains how to find more properties:
        How to access macro action properties after converting a macro into a script.

        Hope it helps!

        1. Reuven Amiel @Reuven_Amiel
            2021-01-23 18:36:27.268Z

            Thanks will try it out!

          • In reply toReuven_Amiel:
            Reuven Amiel @Reuven_Amiel
              2021-01-23 21:18:27.694Z

              Hi,

              How are you.
              I tried it and is not working.
              Trying to Route the ouput of selected tracks to a New Bus(Aux)

              I selected 2 tracks where I have to:
              1-hold Shift+command
              2-go to Track Output Menu>
              3- Then with Press Keys I type the name of New Track, Enter, so the New Track window opens,-
              ( at this point I can release the Shift+Command)
              4 Type the New Aux Bus Name I want to create and enter

              and both outputs of the slected tracks are Routed to the new bus

              All what I did works but is not doing the Holding Shift+Command as only one track gets Routed to the New Bus Created.....so something related to the Hold Shift Comand is not working as that is what happens when yiou do not hold Shift+Command

              Thanks

              1. samuel henriques @samuel_henriques
                  2021-01-24 08:30:48.470Z

                  I'm away from my computer today, check out this thread :Select Track Output

                  Hope it helps.

                  1. samuel henriques @samuel_henriques
                      2021-01-24 15:28:07.532Z

                      Hey @Reuven_Amiel,
                      try this:

                      sf.ui.proTools.appActivate();
                      
                      sf.ui.proTools.selectedTrack.groups.whoseTitle.is('Audio IO').first.popupButtons.allItems[1].popupMenuSelect({
                          isShift: true,
                          isOption: true,
                          menuPath: ["new track..."],
                          targetValue: "Enable",
                      });
                      
                      sf.ui.proTools.windows.whoseTitle.is('New Track').first.elementWaitFor({
                          waitType: "Appear",
                      });
                      
                      sf.ui.proTools.windows.whoseTitle.is('New Track').first.checkBoxes.first.checkboxSet({
                          targetValue: "Disable",
                      });
                      
                      1. Reuven Amiel @Reuven_Amiel
                          2021-01-25 01:57:20.858Z

                          Thank you Samuel!!