Activates an application window. Corresponds to the AppActivate action.
System.AppActivate(Application, Wait)
Newlook Smartclient only.
Application - (String, Optional)
String value specifying which application to activate. This can be the executable name for the application or the screen title for the application. In determining which application to activate the specified application is compared to the executable name of each running application. If no match exists, the specified application is compared with the title of each running application. If no exact match still exists, any application whose title string begins with Application is activated. If an application still cannot be found, any application whose title string ends with Application is activated. If more than one instance of the application named by Application exists, one instance is arbitrarily activated. If no Application is specified then the current Newlookwindow is used.
Wait - (Boolean, Optional)
Boolean value indicating whether to wait for the application to activate before returning from the method. If Wait is set to True, application will only become activated when Newlook itself has the input focus. If it doesn’t, the macro will wait until Newlook regains the focus before activating the application. If Wait is set to False, the application is activated immediately. If Wait is not specified, False is used.
Returns a boolean value indicating the success or failure of the method.
In the following example we are calling the AppActivate method to activate notepad before sending the application some key strokes. JSCRIPTfunction CopyToNotepad() {
} |
RunApp method | OpenForm method | OpenFile method
© 2004-2021 looksoftware. All rights reserved.