A beginning beginner's question about input, output and . . .

Chris Angelico rosuav at gmail.com
Tue Jan 12 01:07:16 EST 2021


On Tue, Jan 12, 2021 at 3:16 PM Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:
> > Currently I'd like to write something to iterate
> > through open windows and save them to different folders depending on
> > if the titlebar contains certain strings.
>
> That sounds like it should be doable if you can get access to the
> right Windows API functions. Check out the pywin32 package. If that
> doesn't provide what you need, there's always ctypes (part of the
> standard python distribution, gives low-level access to C library
> functions).
>

Sounds like an awful lot of work. On Linux, I'd just subprocess out to
wmctrl and parse its output - way easier.

ChrisA


More information about the Python-list mailing list