How do I maximize, minimize, check whether the program is minimized ?
Asked
Active
Viewed 321 times
0
-
You'll have to be more specific. Are you talking about your own program? If so, what toolkit are you using (tkinter, wxpython, etc). Or, are you talking about controlling other programs? If so, what platform are you on? – Bryan Oakley Jul 14 '10 at 20:32
-
It's a game, gta san andreas to be more specific. – Marijus Jul 14 '10 at 20:33
1 Answers
0
Flip through the win32gui module (part of the PyWin32 extensions). Most of the functions in it are fairly thin wrappers of standard Windows API calls.
If you want to blindly control something, this question.
Checking if your target program is maximized/fullscreen could likely be accomplished by win32gui.
GetForegroundWindow()
and checking that handle.