~/talk

Using GUI Automation to Create APIs for API-less Desktop Apps

Talkat PyCon Italia 2023 · 2023-05-25..05-28· [python]
links:none on file
slides:none on file

Demonstrates using PyAutoGUI to control mouse and keyboard and build a real Python wrapper for a GUI-only app, turning Posterazor into a usable Posterazor API module. Shows exact techniques: pixel color checks, keyboard navigation instead of XY clicks, window resizing and percent-based coordinates, using screenshots or OpenCV fuzzy matching, and the fail‑safe mouse corner to stop runaway loops. The module works on the presenter's laptop and automates the five-step Posterazor export reliably.

AI-written summary · about

  1. 0:00Introduction and background
  2. 1:32Why create GUI automation
  3. 3:57Introducing PyAutoGUI
  4. 7:00Real-world use cases
  5. 10:08Benefits of GUI automation
  6. 11:52Case study: Posterazor
  7. 15:01Tips and best practices
  8. 21:14Philosophy of messy code
  9. 22:42Q&A and conclusion
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.