IsAppRunning Function

Checks to see if the specified application is currently running. See also the Shell function.

IsAppRunning ( application )

Parameters

Application  -  (Input, expression, Required)

Specifies the name of the application to search for. Newlook attempts to find this application in two ways. It enumerates the top-level windows and will match either the first window found whose program name matches the application, (e.g. Notepad.exe) or if the window’s title matches the application (e.g. “Untitled – Notepad”). If found, True is returned, otherwise False.

Return Value

Returns True if the application was found, otherwise False. Error is returned if a non-string application name is passed, or if the application name is blank.

Note

The application program name can only be used under Windows 2000 and Windows XP. Under Windows 98, Windows ME and Windows NT 4.0 the application title bar text must be used.

Examples

IsAppRunning (“Nl.exe”)

Returns True

IsAppRunning (“ABCDEFG”)

Returns False

IsAppRunning (Null)

Returns Error

IsAppRunning (Error)

Returns Error

TIP:

Functions are specifically for use in the Macro Editor. Refer to Microsoft's official VB and JScript documentation for scripting equivalents.

See Also

Functions | Environ function | IsAppRunning function | QBColor function | RGB function | Shell function


© 2004-2021 looksoftware. All rights reserved.