logo
  • 教程列表
  • SO官方文档
  • pyautogui 模块
    • 鼠标功能
    • 键盘功能
    • ScreenShot 和图像识别
  1. StackOverflow 文档
  2. Python Language 教程
  3. pyautogui 模块
  4. 键盘功能

键盘功能

Created: November-22, 2018

这些是一些有用的键盘功能,可以自动按键。

typewrite('')    #this will type the string on the screen where current window has focused.
typewrite(['a','b','left','left','X','Y'])
pyautogui.KEYBOARD_KEYS    #get the list of all the keyboard_keys.
pyautogui.hotkey('ctrl','o')    #for the combination of keys to enter.
  • ScreenShot 和图像识别
  • 鼠标功能

Copyright © 2018. All right reserved

tastones.com 备案号:鲁ICP备18045372号-1

  • 关于我们
  • 免责声明