Scripting Home > > WScript Methods

AppActivate Method

Description

The AppActivate method is used to change the focus of a running application.

object.AppActivate (Title)

The Title parameters is a string that specifies the title (or task identifier) of the application to be activated (receive focus). The Title parameter is compared the string titles of the running applications and the best match is activated.

Example

'VBScript Example
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.AppActivate ("Internet Explorer")