Macro Buttons color

The Virtual Audio Mixer discussions and support...
Post Reply
Bidj
Posts: 1
Joined: Wed Apr 15, 2020 5:18 pm

Macro Buttons color

Post by Bidj »

I may have missed it in the documentation but is there a way to change the color of a Macro Button in a script ?
I was thinking of something like Button[0].color=2; or Button[0].buttonColor=2;
(and if that's not already the case, something like Button[0].color=#A1B2C3; would be great).
stoepie
Posts: 7
Joined: Thu Aug 25, 2022 8:58 pm

Re: Macro Buttons color

Post by stoepie »

Hi all, from this newbie on the forum.

I reached this part as I too would like to programatically change the color of a button when I press it (or release it).

My use case is where I use a button to enable a stream, in which case I would like the button to go from GREEN to RED (like an on-air indication).

On disabling, I'd like the button to be green again.

It can be done by loading a copy of the buttons where the new color is defined in the XML, but its very complicated and gets exponentially worse with more buttons.... status keeping is then a bit of a hassle (read: nightmare) too.

Might this be an idea for a feature request?

I am using Voicemeeter more and more... it's great. It offers the audio routing that should have been part of windows... and more....

-David
stoepie
Posts: 7
Joined: Thu Aug 25, 2022 8:58 pm

Re: Macro Buttons color

Post by stoepie »

Thought about this for a bit. What would also work is an extra config option to set the button color for an activated (pressed/latched) button.
Vincent Burel
Site Admin
Posts: 1823
Joined: Sun Jan 17, 2010 12:01 pm

Re: Macro Buttons color

Post by Vincent Burel »

ok, we finally have implemented an instruction to change the color of a button

Code: Select all

Button.Color = 0 to 9;
Button[i].Color = 0 to 9;
it will be in the next coming version this week...
stoepie
Posts: 7
Joined: Thu Aug 25, 2022 8:58 pm

Re: Macro Buttons color

Post by stoepie »

Very nice, thank you.

:mrgreen:
stoepie
Posts: 7
Joined: Thu Aug 25, 2022 8:58 pm

Re: Macro Buttons color

Post by stoepie »

Bought another license to support you!
Vincent Burel
Site Admin
Posts: 1823
Joined: Sun Jan 17, 2010 12:01 pm

Re: Macro Buttons color

Post by Vincent Burel »

thanks for your support! :-)
Post Reply