Re: Getting focused window of another app

2006-07-15 Thread Jim Lewis
Never mind ... wHnd = win32gui.GetForegroundWindow() Caption = win32gui.GetWindowText (wHnd) -- http://mail.python.org/mailman/listinfo/python-list

Getting focused window of another app

2006-07-14 Thread Jim Lewis
Anyone know how to get the caption of the window currently in focus in whatever app is in use? If I am using Excel, for example, I want my python app to know that Excel is currently being used. -- http://mail.python.org/mailman/listinfo/python-list