[python-win32] Finding the selected file in Windows Explorer
Rickey, Kyle W
Kyle.Rickey at bakerhughes.com
Tue Apr 22 15:23:36 CEST 2008
>From what I understand, you'd probably need to find the listctrl in the explorer window by using EnumChildWindows. From there there's probably a way to get the selected items.
I'm no expert, but that might get you started in the right direction until someone can provide a better response.
-Kyle Rickey
-----Original Message-----
From: python-win32-bounces+kyle.rickey=bakerhughes.com at python.org [mailto:python-win32-bounces+kyle.rickey=bakerhughes.com at python.org] On Behalf Of Daniel Gonçalves
Sent: Tuesday, April 22, 2008 3:51 AM
To: python-win32 at python.org
Subject: [python-win32] Finding the selected file in Windows Explorer
Hi!
I need to find the selected file(s) in a Windows Explorer window from
another program (I'd look at the window that last had focus). I found
something in the following page that should do the trick:
http://blogs.msdn.com/oldnewthing/archive/2004/07/20/188696.aspx
However, it is not Python and, while I'm a competent Python
programmer, Win32, COM and the like are somewhat outside my
competences.
Does any one know how to do something similar in Python (maybe in a more
Pythonic way?)
Tks!
Daniel Gonçalves
_______________________________________________
python-win32 mailing list
python-win32 at python.org
http://mail.python.org/mailman/listinfo/python-win32
More information about the python-win32
mailing list