[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 fin

Re: [python-win32] SHOpenFolderAndSelectItems

2011-08-22 Thread Scott Nelson
Done (ID #3396444) https://sourceforge.net/tracker/?func=detail&aid=3396444&group_id=78018&atid=551957 Many thanks for considering this! On Sun, Aug 21, 2011 at 10:15 PM, Mark Hammond wrote: > On 20/08/2011 5:40 AM, Scott Nelson wrote: > ... > > Doe

[python-win32] Example code for SHOpenFolderAndSelectItems?

2012-09-04 Thread Scott Nelson
Greetings... Would anyone happen to have some sample code of how to use SHOpenFolderAndSelectItems? I've been tinkering with it and haven't got anything to work yet. This is the closest I've got: >>> from win32com.shell import shell >>> shell.SHOpenFolderAndSelectItems((r'c:\junk', ), 1) Traceb

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 launch_file_exp

[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, a

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: http://support.microsoft.com/kb/314