No internet connection
  1. Home
  2. Support

How to create a macro or script that is two Pro Tools keyboard shortcuts in sequence?

By James Richmond @James_Richmond
    2020-08-09 14:10:39.106Z

    Hi folks,
    This is my first macro and I thought it would have been a simple one.
    I just want to hit two Pro Tools keyboard shortcuts in sequence.

    1. cntrl option command up arrow and
    2. option A
      This should give me a view of everything in the Edit Window zoomed out.
      I don't know how to have Soundflow select these Pro Tools keyboard shortcuts.
      What do I need to do?
      Thanks.
    Solved in post #2, click to view
    • 7 replies
    1. Hi James,

      You can use the "Press Keys" action in SoundFlow to simulate a series of keystrokes.

      ReplySolution
      1. Ccharlie keating @charlie_keating
          2021-04-06 09:23:32.221Z

          Rad! I can now create 2pops with the push of a button. Thanks!

        • In reply toJames_Richmond:
          James Richmond @James_Richmond
            2020-08-09 14:38:33.063Z

            Hi Christian,

            Yes this has worked- I now have Logic style 'fit all to zoom' (cmd A and Z) in Pro Tools.

            Thanks very much.

            Cheers,
            James

            1. Nice! Quick pro tip - you can record more than one keystroke in the same Press Keys action, which may be slightly faster :)

              1. James Richmond @James_Richmond
                  2020-08-09 18:30:49.307Z

                  Thanks very much.

                  Is there a pause command anywhere?
                  Sometimes it is useful to have a small delay between button presses in some apps.

                  1. You can use the "Wait" action as a last resort, but generally in SoundFlow we don't use waits with arbitrary constants, instead we wait for the actual thing that we need to happen - for example for a UI element to be ready. This is much more stable and composable than telling the system to wait for, say 200 ms. - which would break on any systems that are slower than the one you tested on.
                    I highly recommend watching the two last videos in our Learning SoundFlow playlist here to learn more about how to do UI automation with SoundFlow:
                    https://www.youtube.com/playlist?list=PLKWpZOwx5Z3jxnpNo_dQPhDQNRwp7DCNj

                    1. James Richmond @James_Richmond
                        2020-08-09 18:37:25.692Z

                        Got it.
                        Thanks for the assistance- I appreciate it.