123456789101112131415161718 |
- import keyboard as kb
- import pyautogui as gui
- from time import sleep
- def _clnrelease():
- gui.click()
- kb.remove_all_hotkeys()
- # !!!!!!!!!print(len(kb.canonicalize('shift, shift')))
- sleep(0.05)
- kb.restore_state([42, 29])
- kb.add_hotkey('shift, shift', lambda: gui.click(), min_time=0.07, timeout=0.17, suppress=False, trigger_on_release=True)
- kb.add_hotkey('control, control', lambda: gui.doubleClick(), min_time=0.07, timeout=0.17, suppress=False, trigger_on_release=True)
- kb.wait()
- #===============================================================================
- # wait for shift than wait for another, if diff between is < 0.17 than add_hotkey
- #===============================================================================
|