# FIXED/ADDED: Button does send multiple commands when pressed instead of single command

**URL:** <https://forum.oscpilot.com/t/fixed-added-button-does-send-multiple-commands-when-pressed-instead-of-single-command/256>\
**Category:** OSC/PILOT Bugs And Feature Requests\
**Created:** [October 22, 2020, 12:26pm UTC](https://forum.oscpilot.com/t/fixed-added-button-does-send-multiple-commands-when-pressed-instead-of-single-command/256 "2020-10-22T12:26:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![whph](https://avatars.discourse-cdn.com/v4/letter/w/8e8cbc/32.png) [@whph](https://forum.oscpilot.com/u/whph)\
**Post date:** [October 22, 2020, 12:26pm UTC](https://forum.oscpilot.com/t/fixed-added-button-does-send-multiple-commands-when-pressed-instead-of-single-command/256/1 "2020-10-22T12:26:44Z")

</div>

Hi,

Just recently started with OSC Pilot so it could be that I miss something here.  
I need a button which will send one command when pressed.  
The main purpose for this is to change RackSpace in Gig Performer (next/previous).  
So when button is pressed, change to previous or next RackSpace in GigPerformer.  
Generally the button does work but each time it is pressed, it will change to next after next, or previous after previous.  
If I change the button to toggle mode it is working correctly, but I will have the toggle for something which isn’t a toggle 😉

---

<div class="post-metadata">

**Author:** ![malcolm](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.oscpilot.com/malcolm/32/19_2.png) [@malcolm](https://forum.oscpilot.com/u/malcolm)\
**Post date:** [October 23, 2020, 12:26am UTC](https://forum.oscpilot.com/t/fixed-added-button-does-send-multiple-commands-when-pressed-instead-of-single-command/256/2 "2020-10-23T00:26:23Z")

</div>

Right, it sends both an On and an Off message when it’s clicked. Ideally your receiver would look at the value of the message (0 or 1) and do something different depending on the value.  
I do plan to make it so if you clear out the ‘Off’ or ‘On’ OSC value, it won’t sent a message for that event. That would fix the issue for you. Likely in the next version.

---

<div class="post-metadata">

**Author:** ![malcolm](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.oscpilot.com/malcolm/32/19_2.png) [@malcolm](https://forum.oscpilot.com/u/malcolm)\
**Post date:** [October 29, 2020, 3:34am UTC](https://forum.oscpilot.com/t/fixed-added-button-does-send-multiple-commands-when-pressed-instead-of-single-command/256/3 "2020-10-29T03:34:35Z")

</div>

The ability to have a button not send an event when it goes off or goes on is now available in a pre-release build:

> [@OSC/PILOT Release Notes/Change Log](https://forum.oscpilot.com/t/release-notes-change-log/98):
>
> 1.9.9 Release March 19, 2023 Available directly at: Windows: [https://software.mau5trap.com/OSCpilot-Installer-v1.9.9.exe](https://software.mau5trap.com/OSCpilot-Installer-v1.9.9.exe) macOS: [https://software.mau5trap.com/OSCpilot-v1.9.9.pkg](https://software.mau5trap.com/OSCpilot-v1.9.9.pkg) Two finger swipe from the top of the window no longer will enter edit mode on macOS or Windows. This will only allow entering the settings on iOS now. 1.9.8 Release March 7, 2023 Fix NDI crash on very old GPUs. Fixed text message not rendering properly on NDI widgets. Upgrade to NDI 5.5. Add Support for NDI to …

---

<div class="post-metadata">

**Author:** ![whph](https://avatars.discourse-cdn.com/v4/letter/w/8e8cbc/32.png) [@whph](https://forum.oscpilot.com/u/whph)\
**Post date:** [October 30, 2020, 12:04am UTC](https://forum.oscpilot.com/t/fixed-added-button-does-send-multiple-commands-when-pressed-instead-of-single-command/256/4 "2020-10-30T00:04:57Z")

</div>

The button does work now with v1.2.1 by setting OSC ON to 1 and empty OSC OFF.  
Thanks for the fast implementation 👍
