Starting minimized

Hello, friends. What’s the correct idiom for starting GP from the command line in a minimized state?

(I want to use this for my “background instances”, so that only the main instance is visible.)

Here’s my current (failing) attempt:

@echo off
cd /d "C:\Program Files\Gig Performer 5\"

:: Launch the main instance as a normal window
start "" GigPerformer5.exe -in="main"
timeout /t 20

:: Launch "global instrument" instances minimized
start "" /min GigPerformer5.exe -in="pianos"
timeout /t 6

start "" /min GigPerformer5.exe -in="horns"
timeout /t 6

start "" /min GigPerformer5.exe -in="strings"
timeout /t 6

start "" /min GigPerformer5.exe -in="hammond"

Try putting the /min before the double quotes, not after.

The empty double-quotes are supposed to be the “window title”, which I thought was supposed to come before the “/min” flag. But in fact I guess there’s no purpose for an empty window title. This command also comes up not-minimized:

start /min GigPerformer5.exe -in="pianos"

It appears nothing works to start GP minimized.
I also tried creating a shortcut to start GP and selected it to run minimized—it doesn’t.

Try this bat file.

Launch.zip (544 Bytes)

1 Like

Gig Performer also includes script functions to do various window operations.
You could add this as a Gig Script to automatically minimise the window once your instance gig files finish loading:

On SystemEvent Matching GigLoaded
    MinimizeOrRestoreGPWindow(true)
End

There is a more extreme function that will fully hide the window (e.g. you will need to run a script to make it visible again):

GPWindowVisible(false)

3 Likes

Is there any way to pass a variable / parameter to Gig Performer to minimise on load, but only if Gig Performer was launched with said parameter?

It would be great if it was possible to still go in and edit stuff without it minimising itself but to have the ability to let it minimise if launched with a parameter.