# Can you start a sketch with Arduino button?

**URL:** <https://discourse.processing.org/t/can-you-start-a-sketch-with-arduino-button/37494>\
**Category:** Electronics (Arduino, etc.)\
**Created:** [June 12, 2022, 12:49am UTC](https://discourse.processing.org/t/can-you-start-a-sketch-with-arduino-button/37494 "2022-06-12T00:49:45Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![glv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/glv/32/18785_2.png) [@glv](https://discourse.processing.org/u/glv)\
**Post date:** [June 13, 2022, 12:07am UTC](https://discourse.processing.org/t/can-you-start-a-sketch-with-arduino-button/37494/12 "2022-06-13T00:07:46Z")

</div>

Hello,

Updates…

I did some testing on Windows 10 Pro and added comments to sketch below:

```auto
// This will launch a Processing 4.0b8 sketch when run on Processing 3.5.4 or 4.0b8:
//launch("D:/Program_Portable/processing-4.0b8/processing-java --sketch=/Users/me/Documents/Processing4b8/Grid_diagonals_1_0_2 --run");

// This will launch a Processing 3.5.4 sketch when run on Processing 3.5.4 or 4.0b8:
//launch("D:/Program_Portable/processing-3.5.4/processing-java --sketch=/Users/me/Documents/Processing4b8/Grid_diagonals_1_0_2 --run");

// Only Processing 4.0b8 is in my Windows path!

// Below is of interest:
// if run from Processing 3.5.4 it opens a 3.5.4 sketch
// if run from Processing 4.0b8 it opens a 4.0b8 sketch

// Processing 4.0b8 folder added to Windows path:
launch("processing-java --sketch=/Users/me/Documents/Processing4b8/Grid_diagonals_1_0_2 --run");

```

You will have to change paths and sketch names to run on your system.

`:)`

---

_[View the full topic](https://discourse.processing.org/t/can-you-start-a-sketch-with-arduino-button/37494)._
