Get(WindowMode)

Category: Get

Syntax: Get ( WindowMode )

Parameters: None

Data type returned: Number

Description:

Returns a number that indicates in what mode the active window is.

Returns 0 for Browse mode.

Returns 1 for Find mode.

Returns 2 for Preview mode.

Returns 3 if printing is in progress.

Notice that this function can never return a value indicating that a window is in Layout mode. If a script ever attempts to operate within the context of a window that is in Layout mode, the window is automatically switched to Browse mode and the script continues as expected.

Examples:

Function

Results

Get (WindowMode)

Assuming a window is in Browse mode, returns 0.

Категории