# How to receive user input in processing

**URL:** <https://discourse.processing.org/t/how-to-receive-user-input-in-processing/2449>\
**Category:** Coding Questions\
**Created:** [August 7, 2018, 5:37pm UTC](https://discourse.processing.org/t/how-to-receive-user-input-in-processing/2449 "2018-08-07T17:37:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Danny\_Posada](https://avatars.discourse-cdn.com/v4/letter/d/ba9def/32.png) [@Danny\_Posada](https://discourse.processing.org/u/Danny_Posada)\
**Post date:** [August 7, 2018, 5:37pm UTC](https://discourse.processing.org/t/how-to-receive-user-input-in-processing/2449/1 "2018-08-07T17:37:51Z")

</div>

Recently I’ve been trying to find a way to have a user input some information into the program without having to alter the source code, but I have yet to find a solid answer online. I use java, so i’m not sure if that’s a factor, but if you guys have any solutions please let me know. (Also, the user input can be either the program asks you in a pop-up or the program asks you in the console, I don’t really care). That you all for your help!

---

<div class="post-metadata">

**Author:** ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)\
**Post date:** [August 7, 2018, 5:40pm UTC](https://discourse.processing.org/t/how-to-receive-user-input-in-processing/2449/2 "2018-08-07T17:40:45Z")

</div>

1. [Forum.Processing.org/two/discussion/12532/windowjs-cross-mode-alert-confirm-prompt-other-js-api-for-java](http://Forum.Processing.org/two/discussion/12532/windowjs-cross-mode-alert-confirm-prompt-other-js-api-for-java)

2. [Gist.GitHub.com/GoToLoop/bba0c288aaeeb5ef9bb1](http://Gist.GitHub.com/GoToLoop/bba0c288aaeeb5ef9bb1)

---

<div class="post-metadata">

**Author:** ![Danny\_Posada](https://avatars.discourse-cdn.com/v4/letter/d/ba9def/32.png) [@Danny\_Posada](https://discourse.processing.org/u/Danny_Posada)\
**Post date:** [August 8, 2018, 3:13pm UTC](https://discourse.processing.org/t/how-to-receive-user-input-in-processing/2449/3 "2018-08-08T15:13:40Z")

</div>

thank you for the links, but unfortunately, I own a Mac, not a windows, and also these commands don’t seem to work when I run the program in processing

---

<div class="post-metadata">

**Author:** ![lqdev](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/lqdev/32/29_2.png) [@lqdev](https://discourse.processing.org/u/lqdev)\
**Post date:** [August 8, 2018, 3:51pm UTC](https://discourse.processing.org/t/how-to-receive-user-input-in-processing/2449/4 "2018-08-08T15:51:33Z")

</div>

Hey! Read carefully!  
The name “WindowJS” implies that the library provides functionality of the `window` object from Browser JavaScript - not that it’s Windows only. It is also pointed out in the post itself.  
The problem is not that you have a Mac, rather you didn’t install the library, I guess. You first have to install the lib, and only then you can use the functions of WindowJS.  
WindowJS is installed super-simply, just paste the window.java file into your sketch folder. The download is provided in the original post.

---

<div class="post-metadata">

**Author:** ![Danny\_Posada](https://avatars.discourse-cdn.com/v4/letter/d/ba9def/32.png) [@Danny\_Posada](https://discourse.processing.org/u/Danny_Posada)\
**Post date:** [August 8, 2018, 10:23pm UTC](https://discourse.processing.org/t/how-to-receive-user-input-in-processing/2449/5 "2018-08-08T22:23:23Z")

</div>

Thank you! I’m sorry, I’m not really tech-savvy, so I appreciate the clarification
