I was wondering if this is at all possible. What I want to do is a
have a a web page that simply has a text box on it.
1. When the text box gains focus, call the onfocus event in
javascript, which immediately clears the clipboard and then calls
http://zxing.appspot.com/scan.
2. User clicks to use BarCode Scanner.
3. User scans the barcode, which immedately copies the barcode to the
clipboard and returns focus back to the web application.
4. The webpage is using a setimeout for 1000 ms to check to see if the
clipboard is empty, and stays in a continuous loop until it gets a non-
empty value.
5. Once the scan is made and focus returned back to the web page, the
barcode contents populates the text box with the contents of the
barcode.
Is that possible? Is there a better way (other than writing an non-
browser based app)?
Thanks,
Paul