Thanks for the info, Jo. What you describe is actually what I had been
googling. I'll look through the win32 api again though. I'm not as
familiar with it as I should be.
As for your examples, I'll search for those. I have some Qt stuff on the
side that will need similar functionality.
-Tim C.
On 7/29/2012 10:00 PM, jo benayoun wrote:
Hey Tim,
there is many ways to bring back a window to the foreground, and the
way you're going is one of them. In any cases, you will need the
window handle to manipulate the right window.
There is many ways to retrieve this handle, start looking thru the
Fusion SDK, if they are not exposing it or just use the win32 api and
its convenient functions to enumerate the windows and find the one
you're interested in. You have btw to be sure you have the handle of
the parent window of the application.
I remember having posted times ago some examples related to the Qt
integration in xsi which could fit your needs.
=)
-- Jo
2012/7/29 Tim Crowson <[email protected]
<mailto:[email protected]>>
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
<http://www.magneticdreams.com>
[email protected] <mailto:[email protected]>
--
Signature