ActivateApp statement (LotusScript® Language)

Makes a program window the active window.

Syntax

ActivateApp windowName

AppActivate is acceptable in place of ActivateApp.

Elements

windowName

A string expression designating the program window to activate.

Usage

windowName is not case sensitive.It must exactly match the leftmost characters of the program title that appears in the program window title bar. For example, if the program title of a running program window is "Notes® - Workspace," then a windowName value of "Notes®" will activate that window. If more than one program title matches windowName, LotusScript® will choose one of the program windows.

ActivateApp can activate a minimized window, but cannot restore or maximize it. Use SendKeys to restore or maximize a window. Use Shell to start a program.

Example