|
|
|
The IntraLaunch:CloseApp macro will allow you to close an already running application. The
program to close must be specified in the RunParms parameter. This must be the
program's classname.
Warning - with IntraLaunch 4.9 and higher the format of RunParms which is used to specify which program to close has changed. The format is "classname,window title". Either the class name or window title may be an asterisk (*) signifying all. A program's classname can be obtained using the utilities ShowClass.exe and Watcher.exe. Typical classnames are OpusApp for Microsoft Word, SciCalc for the Calculator, XLMAIN for Microsoft Excel. All classnames are case sensitive. The closing program may still require user intervention, for example if Word has an unsaved document open it will still ask if you would like to save it first. The following example will close Microsoft Word if it is running. If it is not running then nothing will appear to happen at all. The following examples require IntraLaunch 4.9 or higher.
Other examples Close the first application found with the text "sales.doc" somewhere in the window's title: <PARAM NAME="RunParms" VALUE="*,*sales.doc*">
Close first instance of notepad found with the text "doc.txt" somewhere in the title: <PARAM NAME="RunParms" VALUE="Notepad,*doc.txt*">
Another way of closing Microsoft Word: <PARAM NAME="RunParms" VALUE="*,*Microsoft Word*">
|
|||||||||||||||||||||||||||||
|
Web services provided by Extreme Hosting |