title: How to read value from simple USB device?
body: <p>I have an exceedingly simple USB device. There is no driver provided and instructions are to open an editor and manpulate the device (let's not confuse the issure by dicussing the device) to see the result.</p>
  
  <p>Sure enough, if I open Notepad in Windows and manipulate the device a text string appears in Notepad.</p>
  
  <p>Ok, it looks like it is writing to <code>stdin</code>. Now I would like to write a Delphi program to take this input and act upon it ...</p>
  
  <p>How should I best go about it?</p>
  
  <p>The form doesn't seem to be receiving KeyDown/KeyUp/KeyPress events. That's a pity as it would allow the device to 'interrupt' me. But, maybe I have to poll? Every so often (how often?) I could attempt read from <code>stdin</code> - but what if there is nothing to read?</p>
  
  <p>I hope that I explained that clearly. Any advice?</p>
  
  <hr>
  
  <p>Update: oops, my bad -  I wasn't receiving KeyDown/KeyUp/KeyPress events because I forgot to set the form's KeyPreview to True.  But I am awarding the question to Greg because he tried to help and because HID looks interesting. Thanks, Greg.</p>