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

Right Click and Select Pop Up Menu Script no longer working PT 2024.3

By Bao Pham @Bao_Pham
    2024-03-11 09:49:31.737Z

    Title

    Right Click and Select Pop Up Menu Script no longer working PT 2024.3

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

    After changing the output of the track, it's supposed to right click and select Move To... then the folder named (in this case) 'BOOMINATI'. The right click and select Move To and selecting the appropriate folder name is no longer working. I just updated to PT 2024.3. It was working in PT 2023.12 and lower. Not sure why it's not working anymore. I have this same script for when i want to move specific tracks to specific folders on my template.

    Are you seeing an error?

    At the top right, says failed line 11. Here's the log: 11.03.2024 16:47:37.19 [Backend]: Logging error in action (01) WaitForPopupMenuAction: Popup window was not found after waiting 2000 ms Logging error in action (01) OpenPopupMenuFromElementAction: Popup menu was not found

    11.03.2024 16:47:37.19 [Backend]: Logging error in action (01) PopupMenuSelectAction: Could not open popup menu
    !! Command Error: Move to BOOMINATI [user:ckupmip4l000gpq10np9x4scm:ckuqiornx00096t100ga1gew8]:
    Could not open popup menu (Move to BOOMINATI: Line 11)
    Popup menu was not found
    Popup window was not found after waiting 2000 ms

    What happens when you run this script?

    I select the track i want moved, It changes the output, but does not move it to the folder i want it to move to

    How were you running this script?

    I used a Stream Deck button

    How important is this issue to you?

    5

    Details

    {
        "inputExpected": "After changing the output of the track, it's supposed to right click and select Move To... then the folder named (in this case) 'BOOMINATI'. The right click and select Move To and selecting the appropriate folder name is no longer working. I just updated to PT 2024.3. It was working in PT 2023.12 and lower. Not sure why it's not working anymore. I have this same script for when i want to move specific tracks to specific folders on my template.",
        "inputIsError": true,
        "inputError": "At the top right, says failed line 11. Here's the log: 11.03.2024 16:47:37.19  [Backend]: Logging error in action (01) WaitForPopupMenuAction: Popup window was not found after waiting 2000 ms\nLogging error in action (01) OpenPopupMenuFromElementAction: Popup menu was not found\n\n11.03.2024 16:47:37.19  [Backend]: Logging error in action (01) PopupMenuSelectAction: Could not open popup menu\n!! Command Error: Move to BOOMINATI [user:ckupmip4l000gpq10np9x4scm:ckuqiornx00096t100ga1gew8]:\nCould not open popup menu (Move to BOOMINATI: Line 11)\n    Popup menu was not found\n    Popup window was not found after waiting 2000 ms\n",
        "inputWhatHappens": "I select the track i want moved, It changes the output, but does not move it to the folder i want it to move to",
        "inputHowRun": {
            "key": "-MpfwmPg-2Sb-HxHQAff",
            "title": "I used a Stream Deck button"
        },
        "inputImportance": 5,
        "inputTitle": "Right Click and Select Pop Up Menu Script no longer working PT 2024.3"
    }

    Source

    
    sf.ui.proTools.mainWindow.invalidate();
    
    sf.ui.proTools.selectedTrack.trackOutputSelect({
        outputPath: ["bus","bus menu 257-384","BOOMINATI (Stereo)"],
        selectForAllSelectedTracks: true,
    });
    
    sf.ui.proTools.mainWindow.invalidate();
    
    sf.ui.proTools.selectedTrack.titleButton.popupMenuSelect({
        isRightClick: true,
        menuPath: ['Move to...',' BOOMINATI']
    });
    
    
    

    Links

    User UID: M3ovaTsu0nXGFsqlOe9UV72cFSq2

    Feedback Key: sffeedback:M3ovaTsu0nXGFsqlOe9UV72cFSq2:-NsguhMD4McA1n_7nNGy

    Feedback ZIP: V+jnLlb33EkgD9U+bV/2+NwhKs7isNlj6ontXTWPNxxKm7K6AhqGqZbDX6f3nx0i2tVm5kpomcjG4B6t6Jvh+eYcimpD2AqWGoEllXTfuGGq3hFOgvcXI5vxfvwZGFppktC3XvmHzeTh5J9Mryy9Hlob+j+EZIeSJgpmH/LQyeWKh1w9GoFU0PzTLA4zsl8qbnIffB5u0VMzZdeSf6QH0bs9SI4867HwxC2Z6pGzoIEofrr4dmDIKkhX35H8c4jvYgTabJ2PXvzMikKYO3vEL5IIqFafjWPMHo20wsv6xdiBVTmJfoeiV7ocVd0AV/EvZbLehb/tuqVqYuCFhE1bGbJIXmRZ2EcVpJysS7Y2IOE=

    Solved in post #4, click to view
    • 10 replies
    1. B
      Bao Pham @Bao_Pham
        2024-03-11 09:56:12.868Z

        To give some more context, Line 11 stops working...It's supposed to right click>Move to...any one of those folders from Hook Aux to Sound EFX

        1. D
          In reply toBao_Pham:
          David Shackney @David_Shackney
            2024-03-11 18:41:40.074Z

            I'm experiencing the same problem.
            OS 12.7.4
            Following.

            1. In reply toBao_Pham:

              Hey @Bao_Pham, @David_Shackney, 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:

              sf.ui.proTools.selectedTrack.titleButton.popupMenuSelect({
                  isRightClick: true,
                  menuPath: ['Move to...',' BOOMINATI']
                  relativePosition: { x: 5, y: 5 } // Required for 2024.3 but backwards compatible
              });
              
              Reply1 LikeSolution
              1. Chad Wahlbrink @Chad2024-03-11 19:34:14.896Z

                @raphaelsepulveda for the win!

                1. BBao Pham @Bao_Pham
                    2024-03-12 02:33:44.070Z

                    Perfect thank you so much! @raphaelsepulveda

                    1. TTJ Allen @TJ_Allen
                        2024-03-16 09:03:15.615Z

                        Hey @raphaelsepulveda, thanks for that fix!

                        Would a similar new offset be required to change track heights? I'm seeing a problem with scripts that attempt to change the height of any tracks. I'll create a dedicated post for it - but thought I'd tag it on here as well, as it's potentially a similar issue.

                        1. @TJ_Allen, ah yes. Track height requires a different type of adjustment.
                          Please go ahead and create that new post and I'll reply there with the solution. That way we can get more eyes on it.

                      • S
                        In reply toBao_Pham:
                        SoundFlow Bot @soundflowbot
                          2024-03-11 20:15:37.992Z

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

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

                              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 toBao_Pham:
                                SoundFlow Bot @soundflowbot
                                  2024-03-14 19:39:39.448Z

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