同时按下两个键盘键(不按顺序)

时间:2018-06-01 00:03:50

标签: pyautogui

我想让pyautogui在同一时间按两个键盘键(不按顺序)。这可能吗?

我无法在文档中找到任何内容,并尝试使用多种语法(按,上/下和热键)无效。

# Press and delay release of MP to start a song (This section can be removed if using for lvl 5 only
    pyautogui.keyDown('i')
    pyautogui.time.sleep(1)
    pyautogui.keyUp('i')
# Start the song.
    pyautogui.keyDown('o')
    pyautogui.keyUp('o')
    pyautogui.hotkey('i', 'o')  <<<issue here, need to press 'io'.

0 个答案:

没有答案