# GUI for controlling sketches from separate windows/places

**URL:** <https://discourse.processing.org/t/gui-for-controlling-sketches-from-separate-windows-places/37027>\
**Category:** Libraries\
**Created:** [May 22, 2022, 9:01pm UTC](https://discourse.processing.org/t/gui-for-controlling-sketches-from-separate-windows-places/37027 "2022-05-22T21:01:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jaschanarveson](https://avatars.discourse-cdn.com/v4/letter/j/b9e5f3/32.png) [@jaschanarveson](https://discourse.processing.org/u/jaschanarveson)\
**Post date:** [May 22, 2022, 9:01pm UTC](https://discourse.processing.org/t/gui-for-controlling-sketches-from-separate-windows-places/37027/1 "2022-05-22T21:01:25Z")

</div>

How do people run interactive full-screen p5js sketches while also being able to see controls?

- do people pipe OSC around?
- is there an easy way to create a second window so that you can have controls on one window and the sketch running in a separate window?

I’d love some advice!

cheers,

-j-

---

<div class="post-metadata">

**Author:** ![mnse](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/mnse/32/16520_2.png) [@mnse](https://discourse.processing.org/u/mnse)\
**Post date:** [May 23, 2022, 9:21am UTC](https://discourse.processing.org/t/gui-for-controlling-sketches-from-separate-windows-places/37027/2 "2022-05-23T09:21:14Z")

</div>

Hi,

You can use a WebSockets implementation ie. with Node.js, so one window(client) with controls can send information via server to another Window(client) with fullscreen graphics. You can look on howto by the following example from Dan: [https://youtu.be/bjULmG8fqc8](https://youtu.be/bjULmG8fqc8)

Cheers  
—mnse

---

<div class="post-metadata">

**Author:** ![jaschanarveson](https://avatars.discourse-cdn.com/v4/letter/j/b9e5f3/32.png) [@jaschanarveson](https://discourse.processing.org/u/jaschanarveson)\
**Post date:** [May 27, 2022, 10:12am UTC](https://discourse.processing.org/t/gui-for-controlling-sketches-from-separate-windows-places/37027/3 "2022-05-27T10:12:01Z")

</div>

Ah, ok - thanks for the link! I figured it’d be something like that…
