28 Dec
2013
28 Dec
'13
12:56 a.m.
I am writing a bunch of USB-HID keyboard shortcuts for some extensions I am writing. Usually one shortcut per def. Since my decoding of HID is integrally tied to the extension, I would like to simplify all my shortcuts coming from one device to one def. As of now if I have 100 button commands I have to 1) register 100 shortcuts, 2) create 100 defs, 3) do corresponding stuff in my extension. I would prefer to call one def that passes the actual keyboard string to my extension, thereby simplifying my user accelerators to just registration. How do I get the string within my keyboard shortcuts python file? thanks, Matthew Dougherty National Center for Macromolecular Imaging Baylor College of Medicine