# Button to change other Button Action

**URL:** <https://wled.discourse.group/t/button-to-change-other-button-action/8010>\
**Category:** Questions\
**Created:** [April 13, 2023, 7:55pm UTC](https://wled.discourse.group/t/button-to-change-other-button-action/8010 "2023-04-13T19:55:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mxklb](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/mxklb/32/4032_2.png) [@mxklb](https://wled.discourse.group/u/mxklb)\
**Post date:** [April 13, 2023, 7:55pm UTC](https://wled.discourse.group/t/button-to-change-other-button-action/8010/1 "2023-04-13T19:55:32Z")

</div>

I have two buttons.

- [0] Push button: Cycle presets, up|down by short|double press
- [1] Analog button: Potentiometer to change brightness (double=250)

Potentiometer acts a bit slow, but nevertheless works as expected.

I would like to on demand (during runtime) change the potentiometer to control effect speed or intensity as well. To select the action behind the potentiometer I would like to use long press of push button [0] to cycle the potentiometer [1] double actions 248|249|250 = intensity|speed|brighness.

Is it possible to setup button long press [0] to change the [action](https://kno.wled.ge/features/macros/#analog-button) configured at another button [1]?

Maybe an API command or usermod I’ve missed? … any help appreciated, thanks

---

<div class="post-metadata">

**Author:** ![mxklb](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/mxklb/32/4032_2.png) [@mxklb](https://wled.discourse.group/u/mxklb)\
**Post date:** [April 13, 2023, 8:23pm UTC](https://wled.discourse.group/t/button-to-change-other-button-action/8010/2 "2023-04-13T20:23:20Z")

</div>

In general an API command to change button actions [short, long, double] could do it …

---

<div class="post-metadata">

**Author:** ![Rommel01](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/rommel01/32/6530_2.png) [@Rommel01](https://wled.discourse.group/u/Rommel01)\
**Post date:** [December 6, 2023, 4:51am UTC](https://wled.discourse.group/t/button-to-change-other-button-action/8010/3 "2023-12-06T04:51:17Z")

</div>

Hello. I’m new to this and based from what you posted. I would like to understand a bit better. You have two buttons. Button 1 will cycle though the basic colors you have, example. Red, Blue,Green. Everytime you press the button a different color appears. If you press button 2 it will reverse back the colors. Is that correct? If yes. Is there any chance you can share that with me please. Also the diimmer with a potentiometer is something i was planning to do as well. Actually thats what im looking for. Thank you in advance.
