No internet connection
  1. Home
  2. How to

Script pressing play "speaker" button in audiosuite window

By Nathan Foucray @Nathan_Foucray
    2024-09-27 13:25:40.075Z

    Hi,

    I am trying to write a script to press the listen/play "speaker" button in an audiosuite window. I tried the following script with different names but I can't figure out if this button have a name or it's just the logo. Or if there is another way around this.

    sf.ui.proTools.firstAudioSuiteWindow.buttons.whoseTitle.is('').first.elementClick();
    

    Thanks !

    • 2 replies
    1. B
      Brandon Jiaconia @Brandon_Jiaconia
        2024-09-27 13:56:01.953Z

        This should work !

        sf.ui.proTools.appActivate();
        sf.ui.proTools.audioSuitePreviewCurrent();
        
        
        1. N
          In reply toNathan_Foucray:
          Nathan Foucray @Nathan_Foucray
            2024-09-30 08:14:50.026Z

            That works perfectly ! Many thanks