Re: Get a control over a window

2007-05-17 Thread Tom Gur
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

Re: Get a control over a window

2007-05-17 Thread Tom Gur
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

Re: Get a control over a window

2007-05-16 Thread Duncan Booth
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

Re: Get a control over a window

2007-05-15 Thread Jürgen Urner
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

Re: Get a control over a window

2007-05-15 Thread kyosohma
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