Re: [python-win32] Bringing an external initiated/called window to foreground/focus?

2014-03-19 Thread mc@mclaveau
Hi! Below, a little code for set to foreground windows who have two sub-string in their title. @-salutations & sorry for my bad english. -- Michel Claveau # -*- coding: utf-8 -*- import win32gui def win_premierplan_h(h

Re: [python-win32] Bringing an external initiated/called window to foreground/focus?

2014-03-19 Thread Jacob Kruger
Perfect! Only issue will be varying possibilities of titles for windows explorer window, but, can work around that. Thanks Jacob Kruger Blind Biker Skype: BlindZA "Roger Wilco wants to welcome you...to the space janitor's closet..." - Original Message - From: Jim Bell To: Jacob

Re: [python-win32] Bringing an external initiated/called window to foreground/focus?

2014-03-19 Thread Jim Bell
Find and activate it by matching its window title. import win32com.client shell = win32com.client.Dispatch('WScript.Shell') if shell.AppActivate('Explorer'): # put a better match here. print 'Did it.' On 2014-03-19 5:32 AM, Jacob Kruger wrote: If, for example, I use something like following

[python-win32] Bringing an external initiated/called window to foreground/focus?

2014-03-19 Thread Jacob Kruger
If, for example, I use something like following command line call/command to launch an instance of windows explorer, in a specific location, with a specific file highlighted/selected, the issue is that it seems to, possibly be hovering in background/not actually taking focus on my windows7 64 bi