Skip to content

Commit

Permalink
Improvements to click action (#923)
Browse files Browse the repository at this point in the history
  • Loading branch information
marticliment committed Nov 15, 2022
1 parent b02d723 commit 64408f9
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions elevenclock/__init__.py
Expand Up @@ -1498,13 +1498,17 @@ def doClickAction(self, actions):
#pyautogui.hotkey(actions[0])
keyboard.press_and_release(actions[0])
case 2:
if (actions[0], actions[1]) == ("win", "n"):
if getSettings("FixCyrillicKeyboards"):
#if (actions[0], actions[1]) == ("win", "n"):
#if getSettings("FixCyrillicKeyboards"):
#pyautogui.hotkey("win", "т")
keyboard.press_and_release("win+т")
else:
#keyboard.press_and_release("win+т")
#else:
#pyautogui.hotkey(actions[0], actions[1])
keyboard.press_and_release("+".join(actions[0:2]))
# cprint("+".join(actions[0:2]))
# keyboard.press_and_release("+".join(actions[0:2]))
#else:
keyboard.press_and_release("+".join(actions[0:2]))

case 3:
#pyautogui.hotkey(actions[0], actions[1], actions[2])
keyboard.press_and_release("+".join(actions[0:3]))
Expand Down

0 comments on commit 64408f9

Please sign in to comment.