AppActivate Statement


AppActivate “app

Activates an application.

The parameter app is a string expression and is the name that appears in the title bar of the application window to activate.

Example:

    Sub Main()

        AppActivate "Microsoft Word"

        SendKeys “%F,%N, BlueZone Basic”,True

        Msg = “Click OK to close Word”

        MsgBox Msg

        AppActivate “Microsoft Word”

        SendKeys “%F,%C,N”, True

    End Sub


Related Topics:

Shell Function

SendKeys Function