Replies: 1 comment
-
Hi @corckie , You can set the image or title on any key that is visible within the Stream Deck canvas. When the key becomes visible the plugin will recieve the willAppear event and when the key is no longer visible the plugin will receive the willDisappear event. I would recommend storing the context ("id" if you are using the new SDK) of the action in the If you are using the latest version of the new Node.js SDK this is already taken care of with the Hope this helps! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
I am able to change button title using WSProxy plugin for StreamDeck and NodeRed.
What works:
if (msg.payload.event === "keyDown") {
} else if (msg.payload.event === "keyUp") {
msg.payload = {
"event": "setTitle",
"context": msg.payload.context,
"payload": {
"title": "UP",
"target": 0
}
};
}
return msg;
however, if I try to set title from incoming number value, it won't work until the key is pressed.
let newTitle = msg.payload;
msg.payload = {
"event": "setTitle",
"context": "Number-state", // here I'm using button ID as a context, but it does not work
"payload": {
"title": newTitle.toString(),
"target": 0
}
};
return msg;
Is it possible to change button title without pressing it? Same goes to changing button image?
Thank you
Beta Was this translation helpful? Give feedback.
All reactions