hi again i want to make something that captures images of my window and sove them into either a gif file or a video file, i thought about using win32s

win32gui.GetDesktopWindow()

but i wasnt sure how to use this to save it to the file
how could i do this?
thanks in advance.

No. The win32gui.GetDesktopWindow function returns the screen size.

ok but how could i capture images of the screen and save them to a gif or video format?