No internet connection
  1. Home
  2. Macro and Script Help

Right click on selected track seems to be broken.

By Jim Schaefer @Jim_Schaefer5
    2024-03-08 22:48:50.710Z2024-03-09 00:01:56.620Z

    Title

    Right click on selected track seems to be broken.

    What do you expect to happen when you run the script/macro?

    Script is supposed to recall specified track preset on selected track.

    Are you seeing an error?

    Could not open popup menu (Recall Track Preset on Selected Track: Line 7) Popup menu was not found Popup window was not found after waiting 2000 ms

    What happens when you run this script?

    Error occurs inconsistently regardless of preset. Sometimes works, sometimes throws the error. Happens regardless of if track list is visible or hidden.

    How were you running this script?

    I used a Stream Deck button

    How important is this issue to you?

    4

    Details

    {
        "inputExpected": "Script is supposed to recall specified track preset on selected track.",
        "inputIsError": true,
        "inputError": "Could not open popup menu (Recall Track Preset on Selected Track: Line 7)\n    Popup menu was not found\n    Popup window was not found after waiting 2000 ms",
        "inputWhatHappens": "Error consistent regardless of specified track preset.",
        "inputHowRun": {
            "key": "-MpfwmPg-2Sb-HxHQAff",
            "title": "I used a Stream Deck button"
        },
        "inputImportance": 4,
        "inputTitle": "Right click on selected track seems to be broken."
    }

    Source

    const { trackPresetPath } = event.props;
    
    if (!sf.ui.proTools.isRunning) throw `Pro Tools is not running`;
    
    sf.ui.proTools.appActivateMainWindow();
    
    sf.ui.proTools.selectedTrack.titleButton.popupMenuSelect({
        isRightClick: true,
        menuPath: ['Recall Track Preset', ...trackPresetPath],
    });
    
    

    Links

    User UID: lDvUsI3q25eEnzGuVMQVeHybMUm2

    Feedback Key: sffeedback:lDvUsI3q25eEnzGuVMQVeHybMUm2:-NsVFIojGYcWKm4WYcl3

    Feedback ZIP: hgSiL7KKeTwtkf6kk7IdvDbJSiPalc+9dtlwL1SQRzZO5ID1atnQtoEuNGXnPq6/7SNtixtGCVoAJC/4uhgHy2VLD/yhLXkz8BpK2l+dfR3whyydJSv/fLZaCROsXZN6z51QxQK/glnLdsvkV7m0OXkkf7rWg2OBTXH49wQ6xxDEVGp57ckoN3OAVEdEy6iBLhzrKqDfu1IPTy5NaoTysZ8Ot2WEC2cFXuWumMepILcFZ3mEntDbkBN+9HgNn6ExW7sBD863xyNZxCj+AUt2hck+Ml8sqbngD8loCb7o1j3k6g2TVF+qQYRLpGlXpAMnC6ykzYPbSYmJAjGwlLM3GLapFl/Hy/j0i4cAfwT0q78=

    Solved in post #2, click to view
    • 4 replies
    1. Chad Wahlbrink @Chad2024-03-11 19:45:24.750Z

      Hey @Jim_Schaefer5!

      As @raphaelsepulveda points out in this thread - starting on PT 2024.3, a small offset is now required for any script that interacts with a track's title button right-click popup menu.

      Add a relativePosition of { x: 5, y: 5 } to get your scripts back in working order, like so:

      
      const { trackPresetPath } = event.props;
      
      if (!sf.ui.proTools.isRunning) throw `Pro Tools is not running`;
      
      sf.ui.proTools.appActivateMainWindow();
      
      sf.ui.proTools.selectedTrack.titleButton.popupMenuSelect({
          isRightClick: true,
          relativePosition: {x:5, y:5}, // Required for 2024.3 but backwards compatible
          menuPath: ['Recall Track Preset', ...trackPresetPath],
      });
      
      Reply1 LikeSolution
      1. S
        In reply toJim_Schaefer5:
        SoundFlow Bot @soundflowbot
          2024-03-11 20:17:05.165Z

          This report was now added to the internal issue tracked by SoundFlow as SF-869

          1. S
            In reply toJim_Schaefer5:
            SoundFlow Bot @soundflowbot
              2024-03-14 19:39:32.204Z

              Linked issue SF-869 updated: This issue should now be resolved in SoundFlow 5.7.1 which is available as a manual download from https://my.soundflow.org - We changed the behavior of popupMenuSelect ("Open & Select Item in Popup Menu") so that it simulates a mouse click in the center of the button, instead of in the top-left corner. This should ensure that buttons with non-clickable borders, like certain track-related buttons in recent versions of Pro Tools, will keep working without having to set up custom offsets.

              1. S
                In reply toJim_Schaefer5:
                SoundFlow Bot @soundflowbot
                  2024-03-14 19:39:35.282Z

                  The linked internal issue SF-869 has been marked as Done