text pyauto gui

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了text pyauto gui相关的知识,希望对你有一定的参考价值。

 import pyautogui
 screenWidth, screenHeight = pyautogui.size()
 currentMouseX, currentMouseY = pyautogui.position()
 pyautogui.moveTo(100, 150)
 pyautogui.click()
 pyautogui.moveRel(None, 10)  # move mouse 10 pixels down
 pyautogui.doubleClick()
 pyautogui.moveTo(500, 500, duration=2, tween=pyautogui.easeInOutQuad)  # use tweening/easing function to move mouse over 2 seconds.
 pyautogui.typewrite('Hello world!', interval=0.25)  # type with quarter-second pause in between each key
 pyautogui.press('esc')
 pyautogui.keyDown('shift')
 pyautogui.press(['left', 'left', 'left', 'left', 'left', 'left'])
 pyautogui.keyUp('shift')
 pyautogui.hotkey('ctrl', 'c')

以上是关于text pyauto gui的主要内容,如果未能解决你的问题,请参考以下文章

OMserver自动化运维平台搭建及测试

python gui 哪个简单

python import win32gui报错

Python - GUI

Python-GUI编程-PyQt5

创建Python GUI