Thanks guys, especially Duncan !
That's what I'm using now:
import sys
from win32gui import GetWindowText, EnumWindows, ShowWindow
from win32con import SW_MINIMIZE
def listWindowsHandles():
res = []
def callback(hwnd, arg):
res.append(hwnd)
EnumWindows(callback, 0)
retur
Thanks guys, especially Duncan !
That's what I'm using now:
import sys
from win32gui import GetWindowText, EnumWindows, ShowWindow
from win32con import SW_MINIMIZE
def listWindowsHandles():
res = []
def callback(hwnd, arg):
res.append(hwnd)
EnumWindows(callback, 0)
return
Tom Gur <[EMAIL PROTECTED]> wrote:
> I was wondering how do I get control over a window (Win32).
> to be more specific, I need to find a handle to a window of a certain
> program and minimize the window.
>
Here's a function which returns a list of all windows where the class is
'PuTTY' or the t
On 15 Mai, 15:06, Tom Gur <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I was wondering how do I get control over a window (Win32).
> to be more specific, I need to find a handle to a window of a certain
> program and minimize the window.
There are many ways to get the handle of a window.
Assuming you ha
On May 15, 8:06 am, Tom Gur <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I was wondering how do I get control over a window (Win32).
> to be more specific, I need to find a handle to a window of a certain
> program and minimize the window.
It sounds pretty complicated to me, but here's what I found:
http