Replies: 6 comments 11 replies
-
Yes, programmatic profile switching would be a great thing. May be at least we get a more flexible Windows detection, so I could have different profiles for different open documents or dialog boxes by title evaluation. Having only the exe file started as trigger is not enough. |
Beta Was this translation helpful? Give feedback.
-
Hi @noisyneil, as it happens I'm in a very similar conversation with Elgato myself! I'm advocating for the Stream Deck as an ADHD accessibility tool (lowering cognitive barriers of entry and counteracting working memory issues through shortcut mapping and macros), and I've been in conversation with Support around specifically whether the Stream Deck would be able to profile switch based on what browser tab / web app is open. Interestingly, this is something that I actually see hampering the Stream Deck's usability as more and more software solutions are rolled out as web-based or web app-based with no development going into standalone PC/Mac executable versions. In the first round of support I was recommended to find a plugin developer who might want to implement this feature through the Stream Deck SDK, but I talked to a plugin dev who confirmed that it's a core functionality of the Windows Stream Deck that it can identify .exe files only and switch profiles based on that. When I took this info back to support, they escalated my case, so I'm currently waiting on their reply. I'm happy to keep you updated as I hear back from them. What I'm wondering right now is if what you've devised for Mac might be implemented using similar logic but adapted to Windows? I'm way in over my head on this topic so right now I'm wondering if it's even possible. Let me know what you think! |
Beta Was this translation helpful? Give feedback.
-
Maybe it's easier if we suggest concrete ways of implementation. Here my suggestions:
In my use cases any of the ways above would be helpful. |
Beta Was this translation helpful? Give feedback.
-
I'm looking for this functionality as well. It is currently possible to use AppleScript to switch the profile via the menu, but it is very slow (~6s total to click the menu and then click the menu item). A faster way also via AppleScript is to launch the editor UI and then click via the profiles menu button. Still clunky, but it gets the job done. One nice solution I could think of would be a URL scheme. Something like streamdeck://switch=<profile_name>. I also wouldn't mind if they could add AppleScript support or simply make the app UI more accessible, and users can do all sorts of things with the app through AppleScript. |
Beta Was this translation helpful? Give feedback.
-
I also would like the ability to dynamically switch to a user-created profile based on the profile name from my plugin. I tried to use the switchToProfile event but as the documentation notes: a plugin can only switch to read-only profiles declared in its manifest.json file. |
Beta Was this translation helpful? Give feedback.
-
It's actually a lot faster now to switch profile via menu using AppleScript, on macOS. (*
@returns true if the profile was found.
*)
on switchProfile(deviceName, profileName)
tell application "System Events" to tell process "Stream Deck"
try
click menu item profileName of menu 1 of menu item deviceName of menu 1 of menu bar 2
return true
end try
end tell
false
end switchProfile |
Beta Was this translation helpful? Give feedback.
-
Hi,
TL;DR: Is programmatic profile switching feasible?
Many SD users on the Keyboard Maestro forum are desperate to get some kind of programmatic profile switching going. We've been emailing Elgato for a couple of years now, and there's been no real movement.
This is a shame, because if you could automatically switch profiles depending on what you're doing in a particular app (for example), this would exponentially multiply the usefulness and immediacy of the SD.
As an example, I've come up with a (janky) way to switch profiles automatically for different Logic Pro plugins. It's works, but it's incredibly complicated and doesn't feel seamless:
HERE IS THE MACRO
If this simply isn't possible, fair enough, but something as simple as switching profiles externally seems like it might be possible, which is why I'm asking this here. Methods I can envision:
Switching via MIDI
Shell script
Javascript
Applescript
Any help, or a summary of the state of play, would be hugely appreciated.
Thanks for your time!
Beta Was this translation helpful? Give feedback.
All reactions