Starts another application.
System.RunApp(Target, Parameters, StartIn, Show)
Newlook Smartclient only.
Target - (String, Required)
A string value specifying the path and name of the application to run. If only the program name is specified, then Windows searches for the file using the default PATH environment variable. If a document file is specified, and Windows has a registered program to handle the specified file extension, the handling program will be executed using the document file name as the passed argument.
Parameters - (String, Required)
A string value specifying any optional command line parameters to use for the application. Specify an empty string if there are no parameters.
StartIn - (String, Required)
A string value specifying the directory in which the application should be started. Specify an empty string if this argument is not relevant.
Show - (Integer, Required)
A constant that specifies the initial display mode for the application.
Refer to Show constants for the values that can be used with this argument.
The RunApp method returns a boolean value. It returns True if the method completed successfully. Otherwise, it returns False.
The following example opens Notepad, activates the application and sends it some keystrokes. JSCRIPT:Function OpenNotepad() { System.RunApp ("notepad.exe","","",nlWinNormal); System.AppActivate("notepad.exe"); System.SendKeys("Notepad", "Keys sent.", true); } |
AppActivate method | RunApp Action
© 2004-2021 looksoftware. All rights reserved.