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)
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)
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
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
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
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