Latest recipes tagged "usb"http://code.activestate.com/recipes/tags/usb/new/2009-07-07T01:32:17-07:00ActiveState Code RecipesInterrogating linux /dev/usb/hiddev0 in python (Python) 2009-07-07T01:32:17-07:00Dima Tisnekhttp://code.activestate.com/recipes/users/4068698/http://code.activestate.com/recipes/576834-interrogating-linux-devusbhiddev0-in-python/ <p style="color: grey"> Python recipe 576834 by <a href="/recipes/users/4068698/">Dima Tisnek</a> (<a href="/recipes/tags/hid/">hid</a>, <a href="/recipes/tags/hiddev/">hiddev</a>, <a href="/recipes/tags/linux/">linux</a>, <a href="/recipes/tags/usb/">usb</a>). </p> <p>What this recipe does:</p> <p>Maps linux usb hid ioctls and related C structs to python; Call ioctls, make some sense of output. Prints all reports for the device with some info.</p> <p>Works with python 2.4 (tested python 2.4.6 on linux amd64). Would need changes (e.g. print) for python 3.0. Might need changes (ioctl signed/unsigned "FIX") for newer python than tested.</p> Changing shortcut on a usb key V2 (Python) 2008-08-22T13:34:57-07:00bussiere bussierehttp://code.activestate.com/recipes/users/4050557/http://code.activestate.com/recipes/576437-changing-shortcut-on-a-usb-key-v2/ <p style="color: grey"> Python recipe 576437 by <a href="/recipes/users/4050557/">bussiere bussiere</a> (<a href="/recipes/tags/key/">key</a>, <a href="/recipes/tags/raccourcis/">raccourcis</a>, <a href="/recipes/tags/shortcut/">shortcut</a>, <a href="/recipes/tags/usb/">usb</a>, <a href="/recipes/tags/windows/">windows</a>). Revision 2. </p> <p>i've made some shortcut on my usb key for launchy and i had always to change them if on one pc the usb drive was i: on an other it was k: it was such a pain each time. Now it change all the shortcut automatically.</p>