keyStroke command with the Robot class in Processing
I am trying to translate alpha waves into a spacebar keystroke so I can switch slides on a Powerpoint presentation. I have everything working so far: alpha waves are correctly identified, there is a time delay so I don't issue too many commands, and I can trace the commands using the println command. However, every time I try to switch the println command out with a keyPress command, the program blows up. Is there an issue with using the keyStroke command in processing? Will it be possible to control another program via Processing or should I use a different program?
Thanks in advance! These forums have been vital!
Comments
http://forum.processing.org/two/discussion/4583/how-do-i-generate-a-keypress-maybe-robot
https://www.google.com/search?q=java+robot+class
Another excellent resource are Chip @chipaudette 's posts about alpha detection, on his blog,
https://www.google.com/search?q="eeg+hacker"+alpha+detection
Chip's source code is available on his Github
https://github.com/chipaudette
William