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.22k stars 1.24k forks source link

Feature request - How to get the control text on a widget #666

Open johnnysluckydays opened 2 years ago

johnnysluckydays commented 2 years ago

Hi, we want to get the control text on a widget on linux system? on windows there're accessibility api to do that.

InfamousPlatypus commented 2 years ago

I believe there is something that will do this job in the roadmap! Unfortunately it sounds like it's difficult. I'm glad windows has an api to help with this, unfortunately lack of some types of accessibility is a known issue with linux. GNOME has the ATK, will this do? https://github.com/GNOME/atk