views:

96

answers:

0

Right now I'm trying to get it to tell when the user has done a copy, cut, or paste operation and log what has been copied/pasted. Essentially I want it to grab the clipboard after the user copies or cuts, and put it in a log file.

Basically, I need a way to grab the system clipboard, and a way to output a log file of what the javascript has recorded. I am very familiar with Java, and would be able to do this in Java, but unfortunately I kinda need to work with google docs.

My idea is to get javascript outputting all the information I need to a text file and then I can write a Java program to take in the text file and spit out some statistics.

Any ideas on how to get those 2 missing components to work? (I already have a javascript keylistener)