While and EndSwitch WEnd dont work

  • I am trying to run this


    but the $button1 just runs by itself without me activating it,
    can somebody please take a look at this