I recall doing a bit of work on this and had to get the program PID and do
some tricky stuff if there were multiple instances open.

I was working with Paul Sultan from Psyop at the time so if he's listening
maybe he can chime in.

--------------------------------------------
Eric Thivierge
http://www.ethivierge.com


On Mon, Jul 30, 2012 at 12:45 PM, Tim Crowson <
[email protected]> wrote:

>  Somewhat OT here...  I've been Googling for half an hour without much
> luck...
>
> I have a tool which contains a button that either launches a program (in
> this case Fusion), or brings it to the foreground if it's already running.
> Launching it if it's not already running is trivial, but I can't quite
> figure out how to bring it to the foreground (and take focus away from
> XSI). I know it's bad manners to steal focus, but in this case it kinda
> makes sense (plus it's been requested).
>
> As far as I can tell, I can use win32gui.BringWindowToTop() to bring
> Fusion to the foreground, but I need to pass the program's handle to it.
> Can anyone shed some light on how to go about getting said handle?
>
> Or, if you have a suggestion for switching app focus from Soft to Fusion
> (via a button, not Alt-tab!), I'm all ears. Thanks for any and all
> assistance!
>
> --
>
>
>
> *Tim Crowson
> **Lead CG Artist*
>
> *Magnetic Dreams Animation Studio, Inc.
> *2525 Lebanon Pike, Building C. Nashville, TN 37214
> *Ph*  615.885.6801 | *Fax*  615.889.4768 | www.magneticdreams.com
> [email protected]
>
>
>

Reply via email to