Python WX and Windows original login (WM_INPUT)

Does anyone know how to use raw Windows login from a Python WX application?

What I need to do is to distinguish the input from several keyboards. Therefore, if there is another way to achieve this, this will also work.

+4
source share
2 answers

Have you tried using ctypes?

>>> import ctypes >>> ctypes.windll.user32.RegisterRawInputDevices <_FuncPtr object at 0x01FCFDC8> 

It would be a bit of work on setting up the Python version of the required structures, but you can directly access the Win32 API without going through wxPython.

+4
source

Theres a beautiful looking library here http://code.google.com/p/pymultimouse/

It is not specific to wx-python - but it uses the original input in python with ctypes (and worked in my test with two mice)

+1
source

All Articles