[Python] How to capture the screen output of a running program?

Discussão em 'Python' iniciado por Stack, Outubro 4, 2024.

  1. Stack

    Stack Membro Participativo

    Is it possible to take screenshots of a running program (with GUI) from another python program ? If so, what could be the steps and libraries that I could use ? (On Windows)

    For example, let's say I have calc.exe running. I'd want to take screenshots of what is displayed to the user from myprogram.py.

    My goal is to analyze what's displayed on the monitored program.

    If it's not possible to isolate the screenshot to a running predefined program, I think I will have to take screenshots of the fullscreen but it's not very practical.

    Continue reading...

Compartilhe esta Página