Billy Pilgrim wrote: > > I am rather new to python and haven't been able to find a solution to > this (in python or in any other language). > > The problem: I am trying to find a way to iterate over the set of > open windows, and retrieve/extract the window title. > > The real project, stupid as it is, is to find the 'Freecell' window > and extract the game number -- which is part of the title.
I hesitate to turn on my sarcasm generator, but I find it hard to believe that you actually looked for a solution to this. Any number of good Google phrases should have brought you the pieces you need to make this happen. import win32gui def winEnumHandler( hwnd, ctx ): if win32gui.IsWindowVisible( hwnd ): print hex(hwnd), win32gui.GetWindowText( hwnd ) win32gui.EnumWindows( winEnumHandler, None ); -- Tim Roberts, [EMAIL PROTECTED] Providenza & Boekelheide, Inc. _______________________________________________ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32