Re: [python-win32] Example code for SHOpenFolderAndSelectItems?

2012-09-06 Thread Scott Nelson
Roger, Thanks much for the example code (and the implementation of the feature in the first place!). It got me running. For posterity, I copied in my function below that wraps up your sample code in a function. Thanks again! -Scott from win32com.shell import shell, shellcon def

Re: [python-win32] SHOpenFolderAndSelectItems

2011-08-22 Thread Scott Nelson
Done (ID #3396444) https://sourceforge.net/tracker/?func=detailaid=3396444group_id=78018atid=551957 Many thanks for considering this! On Sun, Aug 21, 2011 at 10:15 PM, Mark Hammond skippy.hamm...@gmail.comwrote: On 20/08/2011 5:40 AM, Scott Nelson wrote: ... Does pywin have support

[python-win32] SHOpenFolderAndSelectItems

2011-08-19 Thread Scott Nelson
Greetings, I'm looking to get access to the shell function: SHOpenFolderAndSelectItems (MSDN: http://msdn.microsoft.com/en-us/library/bb762232(v=VS.85).aspx) But, after looking around for quite some time (and googling, and searching the pywin32 archives, reading examples...), I am not able to

Re: [python-win32] Find Target

2008-04-03 Thread Scott Nelson
Kyle, If I understand you correctly, and if your not stuck on using os.startfile(), you can use explorer.exe's command line options to do this (and more). os.system('%SystemRoot%\explorer.exe/e,/select=C:\MyFolder\subfolder\MyFile. txt') See thisfor more info:

[python-win32] Confusion with 'SetForegroundWindow()

2008-03-17 Thread Scott Nelson
Greets... I'm looking to use the win32api and win32gui modules to do a bit of Windows tinkering (win2k, ActiveState's Python 2.4.1 distribution) and I've hit a snag. I'd like to have my process/window steal the focus from whatever window currently has it, get a bit of input from the keyboard,