How to generate keyboard events in Python?

后端 未结 11 1067
有刺的猬
有刺的猬 2020-11-22 14:55

short summary:

I am trying to create a program that will send keyboard events to the computer that for all purposes the simulated events should be t

11条回答
  •  伪装坚强ぢ
    2020-11-22 15:25

        def keyboardevent():
             keyboard.press_and_release('a')
             keyboard.press_and_release('shift + b')
             
        keyboardevent()
    

提交回复
热议问题