POV-Ray : Newsgroups : povray.beta-test : command line limitations : Re: command line limitations Server Time
1 Jun 2024 19:47:26 EDT (-0400)
  Re: command line limitations  
From: Christian Froeschlin
Date: 21 Jun 2011 05:26:03
Message: <4e0063ab$1@news.povray.org>
PC John wrote:

> Seems, that there is no way to minimize it programmatically...

well, if you dive deep enough into the windows api ... ;)

I suppose you could enumerate all windows using EnumWindows
until you find one with the process id of your spawned povray
process, and, using that hwnd, call the ShowWindow function
to set it to a minimized state.

Of course it might be more useful to change the command
line behavior such that instead of starting the GUI, only
the splash screen is displayed for a few seconds (but not
longer than the render takes, otherwise it might slow down
fast-rendering animations). This would provide the desired
notification without confusing the 3rd party user with a
complicated extra GUI.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.