English Deutsch Français Italiano Particle Software Buy Now


Particle Software
 
Close Application
   ..::   About  •  Purchasing  •  Search  •  Contact  • Home   ::..
 
Screenshots
• Sample
Downloads
Resources
• FAQ
• Macros

 
   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.


 
 
<HTML>
<BODY>

(Common HTML Web Page)

<OBJECT ID="IntraLaunch" WIDTH=65 HEIGHT=77    CODEBASE="http://intranet.net/menu/IntraLaunch.CAB#version=5,0,0,0"    CLASSID="CLSID:0AE533FE-B805-4FD6-8AE1-A619FBEE7A23">
   <PARAM NAME="ImageLoc" VALUE="Remote">
   <PARAM NAME="ImageSrc" VALUE="http://intranet.net/menu/close.gif">
   <PARAM NAME="Run" VALUE="IntraLaunch:CloseApp">
   <PARAM NAME="RunParms" VALUE="OpusApp,*">
   <PARAM NAME="DefDir" VALUE="">
   <PARAM NAME="Display" VALUE="ACTIVATE">
   <PARAM NAME="ALTInfo" VALUE="Close Microsoft Word">
</OBJECT>

(Common HTML Web Page Continued)

</BODY>
</HTML>
 
 
       


   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*">


Copyright © 1997-2008 Particle Software - All Rights Reserved
Web services provided by Extreme Hosting