단축키사용하기
https://heodolf.tistory.com/61 from pynput.keyboard import Listener, Key, KeyCode store = set() HOT_KEYS = { 'print_hello': set([ Key.alt_l, KeyCode(char='1')] ) } def print_hello(): print('hello, World!!!') def handleKeyPress( key ): store.add( key ) for action, trigger in HOT_KEYS.items(): CHECK = all([ True if triggerKey in store else False for triggerKey in trigger ]) if CHECK: try: func = e..