pythoncom crashes on KeyDown when used hooked to certain applications
I think the problem is that when pyHook gets called back by Windows, the first thing it does is get the window name for the window with focus. PSTR win_name = NULL; … // grab the window name if possible win_len = GetWindowTextLength(hwnd); if(win_len > 0) { win_name = (PSTR) malloc(sizeof(char) * win_len + 1); … Read more