Photo credit: Windell H. Oskay,
on creative engineering and new media art

sendkeys – a handy Processing app

November 14th, 2007

sendkeys (screenshot)

I wrote this little Processing application I’d thought I’d share with you.

It opens a little window with a black circle in it. When you press a key – any key – whatever you press gets sent to your serial port. Also, the circle turns white just to let you know your program is live.

The Processing code that really does anything is just this:

In setup():

String[] ports = Serial.list();
serial = new Serial(this, ports[ports.length-1], baudRate);

and then in keyReleased():


That’s it. Very handy.

Download the sendkeys processing code