User Tools

Site Tools


function:WINDOW

**This is an old revision of the document!**

WINDOW() Function

The WINDOW() function returns the desired coordinate of the specified window, and can have one or two parameters.
Like all Functions, it can be used only in a numeric calculation field.

Usage

  • WINDOW(Coordinate)
    • The Index is assumed to be the window of the Action in which the WINDOW() function is used (like the Manipulate a Window),
      OR, the frontmost window if the Action does not refer to a window.
  • WINDOW(Index, Coordinate)
    • With two parameters, the first parameter specifies which window in the front application to operate on.

Parameters

The first parameter, Index, which is optional, may be:

  • 0: the frontmost window of the frontmost app.
  • Positive Number: the indexed window from front to back.
  • Negative Number: the indexed window from back to front.
  • If this parameter is not provided, then it is assumed to be the window of the Action in which the WINDOW() function is used,
    OR, the frontmost window if the Action does not refer to a window.

The second parameter, Coordinate, specifies the desired coordinate to be returned, and can be:

  • Left
  • Right
  • Top
  • Bottom
  • Width
  • Height
  • MidX
  • MidY

See Also


Actions

Functions

Tokens

Forum

function/WINDOW.1577246225.txt.gz · Last modified: 2019/12/24 22:57 by JMichaelTX