Paste text into Processing
in
Programming Questions
•
2 years ago
Is there a way to have text saved on a user's clipboard to be pasted into a processing sketch.
What I'm trying to do is allow someone to paste their facebook url into a processing sketch and it to return some user data using the facebook API.
When I create a sketch that allows for keyboard input it doesnt recognize command v and the menu bar paste option is grayed out.
It probably has to be something along the lines of
if ( key v &command key==true){
put contents of clipboard into string and display on screen
}
Suggestions!?!?
What I'm trying to do is allow someone to paste their facebook url into a processing sketch and it to return some user data using the facebook API.
When I create a sketch that allows for keyboard input it doesnt recognize command v and the menu bar paste option is grayed out.
It probably has to be something along the lines of
if ( key v &command key==true){
put contents of clipboard into string and display on screen
}
Suggestions!?!?
2