It's been a while, but I assume that bug must have been caused by returning the result of CallNextHook from the hook procedure rather than just returning 1.
Thanks Chuck. Is this the line?
return WindowsHook.CallNextHookEx(hHook, code, wParam, lParam);
I don't know how to write the WindowsHook class in Python yet. Maybe there is another way. I have no clue.
Are you subclassing the AutoCAD window, or are you using hooks?
I'm going to use
pyHook to monitor system keyboard event.Not just in AutoCAD, so I need to check if AutoCAD is active. This part is not difficult.