recording input from USB port and write to text file
Diez B. Roggisch
deets at nospam.web.de
Wed Aug 19 09:12:55 EDT 2009
Piet van Oostrum wrote:
>>>>>> Allan <af2012 at gmail.com> (A) wrote:
>
>>A> Hi! I'm fairly new to Python. I understand the basics basics but I'm
>>A> been trying to write a simple python code that will let me read input
>>A> data (such as mouse movement) from my USB port and write it in a text
>>A> file and I am so lost. Can anyone help or direct me to some
>>A> resources? Thank you!
>
> You could try http://sourceforge.net/projects/pyusb/
As I said - this is more complicated as it appears. HID-devices will be
captured by the OS and can't be accessed by libusb then (with good reason -
otherwise writing a keylogger is something not even kernel-space is needed
anymore)
Diez
More information about the Python-list
mailing list