# Looking for "event" button on Cabbage

**URL:** <https://forum.csound.com/t/looking-for-event-button-on-cabbage/691>\
**Category:** Developers\
**Created:** [February 22, 2022, 3:21pm UTC](https://forum.csound.com/t/looking-for-event-button-on-cabbage/691 "2022-02-22T15:21:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sh\_dev](https://forum.csound.com/letter_avatar_proxy/v4/letter/s/fbc32d/32.png) [@Sh\_dev](https://forum.csound.com/u/Sh_dev)\
**Post date:** [February 22, 2022, 3:21pm UTC](https://forum.csound.com/t/looking-for-event-button-on-cabbage/691/1 "2022-02-22T15:21:00Z")

</div>

Iv’e been moving back and forth between CsoundQT and Cabbage.  
I found this button in CsoundQT that can generate an event to the score. Unfortunatelly I can’t seem to find how to do the same in Cabbage. Any idea? ![Screenshot 2022-02-22 102023](https://forum.csound.com/uploads/default/original/1X/203982769a8f7dac45edd5fe8a46e808bfd320c7.png)

---

<div class="post-metadata">

**Author:** ![rory](https://forum.csound.com/user_avatar/forum.csound.com/rory/32/7_2.png) [@rory](https://forum.csound.com/u/rory)\
**Post date:** [February 23, 2022, 9:20am UTC](https://forum.csound.com/t/looking-for-event-button-on-cabbage/691/2 "2022-02-23T09:20:11Z")

</div>

Just trigger an event if the button is pressed:

```csound
(...)
button channel("eventButton") 
(...)

instr 1
    kEBtn chnget "eventButton"
    if changed(kEBtn) == 1 then
        event "i", 2, 0, 1
    endif
endin

```

You can also use the schedule opcodes.

---

<div class="post-metadata">

**Author:** ![Sh\_dev](https://forum.csound.com/letter_avatar_proxy/v4/letter/s/fbc32d/32.png) [@Sh\_dev](https://forum.csound.com/u/Sh_dev)\
**Post date:** [February 23, 2022, 1:59pm UTC](https://forum.csound.com/t/looking-for-event-button-on-cabbage/691/3 "2022-02-23T13:59:30Z")

</div>

Awesome, thank you so much!
