No internet connection
  1. Home
  2. How to

Controlling an application when it is not currently selected?

By James Richmond @James_Richmond
    2020-08-13 13:50:47.155Z

    Hi all,

    I am progressing well with my Soundflow and Stream Deck journey.
    I have one question though- say I had a dedicated Stream Deck for one app and wanted to control it without it being the currently selected application.
    For instance controlling DADman when Pro Tools is currently active.
    Is this possible?

    Regards,

    James Richmond

    Solved in post #2, click to view
    • 10 replies
    1. Hi James

      This depends entirely on the app being controlled.
      In DADman's case, we're trying/hoping/wanting to build a dedicated integration that would not rely on any UI automation. When/if we build that, then you could control it from anywhere, regardless of the focused app.

      If you need to control DADman today, it needs to be UI automation, or even mouse simulation. UI automation can often work without an app being focused, whereas mouse simulation needs the app to be in the foreground, as quite literally the OS will interpret the mouse click as if the user had clicked at a specific point on the screen.

      UI automation includes stuff like menu automation. So if you're controlling menu items in DADman, this could (sometimes) be done even if the app is not active/focused. But, unfortunately, many things people wanna do in DADman today requires mouse simulation, and therefore, requires the app to be at least temporarily focused.

      So, if you want to control for example the monitor section in DADman even when Pro Tools is focused - your script would record which app is in focus, switch to DADman, perform the mouse click, and return to the previously focused app.
      Not perfect, but may still improve on the workflow you have today.

      In the future this would all probably be made fully automatic via API integrations.

      ReplySolution
      1. In reply toJames_Richmond:
        James Richmond @James_Richmond
          2020-08-13 17:55:24.197Z

          Hi Christian,

          Ah rats- oh well I figured as much.

          What I really want to do is have my sources in DADman controlled from a Stream Deck so I can enable and disable them on a button, you can see 6 of them there but I could potentially have as many as 32 and a Stream Deck XL would be perfect for it.
          If I have to navigate away from Pro Tools to DADman then it makes no sense to do it.
          I can do it from the Avid Dock of course, but dedicated buttons for all the sources direct to monitor would be brilliant.

          1. EEivind Helgerød @Eivind_Helgerzd
              2021-04-06 17:37:51.918Z

              Hey! Did you figure out a way to do this?? Would be amazing to be able to switch between the monitors and the input sources on my STreamDeck or my iPad :)

              1. Andrew Scheps @Andrew_Scheps
                  2023-05-25 06:49:50.110Z

                  Watch for SoundFlow 5.4!

                  1. DDrew Jurecka @Drew_Jurecka
                      2023-12-09 19:58:31.177Z

                      @Andrew_Scheps Just looking at your very cool MOMdeck package. May I ask - did SoundFlow add a way to directly address UI elements in DADman? I'm searching and trying to find some documentation or explanation of this. Or did you have to write your own code to do this?
                      Thanks!

                      1. Andrew Scheps @Andrew_Scheps
                          2023-12-09 20:51:00.411Z

                          Hi @Drew_Jurecka ,

                          Dadman is a disaster to try and control through the UI. I'm doing all kinds of things using the MOM protocol etc. It would be great to be able to access more functionality, but it works great for the MOM stuff.

                          Thanks,
                          Andrew

                          1. DDrew Jurecka @Drew_Jurecka
                              2023-12-11 15:49:58.315Z

                              Thanks for the reply! Going to dive in to the MOM protocol (or possibly just decide that my workflow is fine and give up).

                              1. Andrew Scheps @Andrew_Scheps
                                  2023-12-11 16:07:24.907Z

                                  There's no functionality that MOMDeck doesn't do that you can control that way unfortunately.

                                  1. DDrew Jurecka @Drew_Jurecka
                                      2023-12-11 16:17:13.659Z

                                      I'm about to dive into MOMdeck, but from the tutorials it may not do what I want, and I have't yet figured out how malleable it's configuration is. Not because it doesn't control all of the parameters in DADman's monitor section that I need, but because the layout philosophy assumes a different approach than how I use my monitor groups. This thread is probably not the place for this discussion, but I'll definitely message you as I dive into this (if you're curious and it's not just noise!) to explain.

                                      1. Andrew Scheps @Andrew_Scheps
                                          2023-12-11 16:22:33.604Z

                                          I'd definitely start a new thread in the MOMDeck forum and let's see if there's a way to make it do what you want. Better to talk it through before buying something. Just write up what you're trying to achieve and a video if it would help and we'll see!