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)

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)

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 title

Get a control over a window

2007-05-15 Thread Tom Gur
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. -- http://mail.python.org/mailman/listinfo/python-list

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

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 have