PyAutoGUI’s documentation! - learnit

Home Top Ad

Post Top Ad

Wednesday, November 16, 2022

PyAutoGUI’s documentation!

PyAutoGUI’s documentation!

To automate interactions with other applications, PyAutoGUI allows your Python scripts to control the mouse and keyboard. The API is intended to be straightforward. PyAutoGUI runs on Python 2 and 3 and is compatible with Windows, macOS, and Linux.


To install with pip, run pip install pyautogui. See the Installation page for more details.

PyAutoGUI has several features:

  • Moving the mouse and clicking in the windows of other applications.
  • Sending keystrokes to applications (for example, to fill out forms).
  • Take screenshots, and given an image (for example, of a button or checkbox), and find it on the screen.
  • Locate an application’s window, and move, resize, maximize, minimize, or close it (Windows-only, currently).
  • Display alert and message boxes.

  • Éxample

    import pyautogui
    import time
    while True:
      time.sleep(1)
      pyautogui.typewrite('tos')
      pyautogui.press('enter')

    Please Watching My Video is Below

    No comments:

    Post a Comment

    Post Top Ad