keyboard icon indicating copy to clipboard operation
keyboard copied to clipboard

always record 3 .

Open xingzhuimeteorite opened this issue 3 years ago • 0 comments

when i try to record key name , when catch a exception . after then, always record 3 whatever i knock any key.

shift shift shift shift G G G G g Traceback (most recent call last): File "C:\Users\gsyang\AppData\Local\Programs\Python\Python36\lib\site-packages\keyboard_generic.py", line 22, in invoke_handlers if handler(event): File "C:\Users\gsyang\AppData\Local\Programs\Python\Python36\lib\site-packages\keyboard_init_.py", line 474, in return hook(lambda e: e.event_type == KEY_UP or callback(e), suppress=suppress) File "E:\learn\python\mouse_key\record_key.py", line 33, in printcall a = record_key(keyboard._pressed_events) File "E:\learn\python\mouse_key\record_key.py", line 9, in init self.single_key_dict_code = list(key_event.keys())[0] IndexError: list index out of range 3 3 3 3 3 3 3

xingzhuimeteorite avatar Jul 27 '21 01:07 xingzhuimeteorite