AppMove

Syntax

AppMove [WindowName$,] HorizPos, VertPos

Remarks

In Windows, moves the specified application window or icon to a position relative to the upper-left corner of the screen. If the application is maximized, an error occurs. On the Macintosh, AppMove is not available and generates an error.

Argument

Explanation

WindowName$

A string that matches the beginning of an application window or icon name, as it appears in the title bar or Task List (Windows). If omitted, Word is assumed. For more information on WindowName$, see AppActivate.

HorizPos, VertPos

The horizontal (HorizPos) and vertical (VertPos) distance from the upper-left corner of the screen to the upper-left corner of the application window or icon, in points (72 points = 1 inch). Negative measurements are allowed only if you specify WindowName$.


Example

This Windows example starts Microsoft Excel if it is not running and then arranges Word and Microsoft Excel into nonoverlapping windows, each one-half the height of the screen:


If AppIsRunning("Microsoft Excel") = 0 Then MicrosoftExcel
AppRestore
AppMove 0, 0
AppSize 480, 180
AppRestore "Microsoft Excel"
AppMove "Microsoft Excel", 0, 180
AppSize "Microsoft Excel", 480, 180

See Also

AppRestore, AppSize, AppWindowPosLeft, AppWindowPosTop, DocMove