asweigart / pyautogui

A cross-platform GUI automation Python module for human beings. Used to programmatically control the mouse & keyboard.
BSD 3-Clause "New" or "Revised" License
10.47k stars 1.27k forks source link

Some windows controls for Linux systems. #844

Open Zealen408 opened 8 months ago

Zealen408 commented 8 months ago

This code adds functionality for Linux systems.

  1. get a list of open windows
  2. return a window id code based on search key word in a window title. e.g search term of "inbox" could return open email window.
  3. shift the focus to a window based on the id.
  4. return the x,y and height, width of a window with a given id.