GetWindowPos System Query Command

GETWINDOWPOS System Queries

Gets the size and position of a document window.

getwindowpos [AT stem] [SIZE stem] [WINDOW name]

AT/a Gets the window position.

SIZE/a Gets the window size in pixels.

WINDOW/s The window name. Default=current.

Results:

AT stem

x/i The horizontal window position.

y/i The vertical window position.

SIZE stem

w/i The window width.

h/i The window height.

Examples:

getwindowpos at coords size coords
say 'Left: '||coords.x
say 'Top: '||coords.y
say 'Width: '||coords.w
say 'Height: '||coords.h

 

GetWindowPos  Command Definition  url:PGScmd/getwindowpos
  created:2006-03-30 22:20:08   last updated:2006-03-30 22:20:08
  Copyright © 1985-2024 GrasshopperLLC. All Rights Reserved.

User Contributed Comments For GetWindowPos
Dan Kilroy wrote...2006-05-04 17:14:54

Script command submitted from PageStream internal documentation. Needs to be checked and merged with the command documentation above.

Gets the {...} .

GetWindowPos (AT &stem/.X.Y SIZE &stem/.W .H [WINDOW document-window])


Parameters:


Results:


Notes:


See Also:


Examples:
Python:


ARexx:

Applescript:

User Contributed Comments For GetWindowPos