# Button automatically clicked once at the beginning of the program

**URL:** <https://discourse.processing.org/t/button-automatically-clicked-once-at-the-beginning-of-the-program/4995>\
**Category:** Libraries\
**Created:** [October 29, 2018, 4:10pm UTC](https://discourse.processing.org/t/button-automatically-clicked-once-at-the-beginning-of-the-program/4995 "2018-10-29T16:10:27Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![kll](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kll/32/964_2.png) [@kll](https://discourse.processing.org/u/kll)\
**Post date:** [October 29, 2018, 5:47pm UTC](https://discourse.processing.org/t/button-automatically-clicked-once-at-the-beginning-of-the-program/4995/2 "2018-10-29T17:47:59Z")

</div>

that i see already,

> [@ControlP5 button event](https://discourse.processing.org/t/controlp5-button-event/4420/):
>
> Dear all, I wrote the following code: // --8\<-------8\<-------8\<-------8\<-------8\<-------8\<-------8\<-------8\<-------8\<----- // ``` ControlP5 cp5; final static String BUTTON\_START="buttonStart"; void initForm() { cp5 = new ControlP5(this); // cp5.setVisible(true); PImage[] imgs = {loadImage(PATH+PATH\_BUTTON+BUTTON\_START+RELEASED+".png"), loadImage(PATH+PATH\_BUTTON+BUTTON\_START+OVER+".png"), loadImage(PATH+PATH\_BUTTON+BUTTON\_START+PRESSED+".png")}; cp5.addButton("sta…

sorry, no idea how to avoid it.

---

_[View the full topic](https://discourse.processing.org/t/button-automatically-clicked-once-at-the-beginning-of-the-program/4995)._
