0

I have a hopefully quick one for the experts here.

I'm writing a script in python that will eliminate repetitive typing into a GL. It's mostly working, but I'm at a roadblock. Using the keyboard package, I'm trying to send ctrl+shift+(minus). I can't seem to get this to work. Even when I just try to send "-" or "minus" or "hyphen" using keyboard.write() it doesn't respond properly.

I'm not opposed to using a different package if needed.

Charles Duffy
  • 280,126
  • 43
  • 390
  • 441

1 Answers1

0

SuperStew was right. pyautogui is the way to go. In case anyone else has a similar issue, you'll need to import pyautogui and to get ctrl+shift+minus it's

pyautogui.keyDown('ctrl')
pyautogui.keyDown('alt')
pyautogui.keyDown('-')
pyautogui.keyUp('ctrl')
pyautogui.keyUp('alt')
pyautogui.keyUp('-')

Thanks so much for all of your help!