pythoncom crashes on KeyDown when used hooked to certain applications

后端 未结 3 415
自闭症患者
自闭症患者 2020-11-30 06:52

I wrote this code on to observe the event of a keydown motion. The problem appears to be that when this script is run, certain programs will crash this program, spitting out

3条回答
  •  無奈伤痛
    2020-11-30 07:39

    If only 1 out of each 2 presses works, it's definetely a problem with missing return value. Try returning either True or False.

提交回复
热议问题