Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

Version 1 Current »

Description

Determines whether or not a given docking window exists.

This is useful for custom GUI work inside of Shogun Post. This command can be used to check if a specified user window exists. This could be used before creating a user window to check if creating or destroying a window with a specified name would cause an error.

Functional area

User Window

Command syntax

Syntax

windowExists "windowName"

Arguments

NameTypeRequiredComments
windowNamestringyesThe name of the user window.

Flags

None

Return value

boolean

Examples

//code from AutoPropVST script
//check at start of operation for existence of the AutoPropVST window
//if it exists, destroy it so that it can be recreated in default form
if(`windowExists "AutoPropVST"`)
{
destroyWindow "AutoPropVST";
}

Additional information

Related commands

  • No labels