If an application is already running IntraLaunch can grab it and refocus it for you so it does not execute more then once. If minimized it will be restored. In this example the Notepad is opened when you click the Try It button, clicking the button again would usually run a second instance. Instead IntraLaunch looks for a process with the same name as what is defined in the recallapp: parameter and if found refocuses it. Parameter value should exclude the extension (eg. .exe). To try it out just click Try It, move the notepad out of focus by minimizing it or something, then click the button again. This feature does not work for all applications, it does work for Microsoft Office.

Refocus Already Running Program

<html>
   <script src="https://code.jquery.com/jquery-2.2.3.min.js"></script>
   <script language="JavaScript" type="text/javascript"> var $jQuery = jQuery.noConflict(); </script>

   <script type="text/javascript">
     jQuery(document).ready(function()
     {
         jQuery("#notepad_link").on("click", function (event) 
         {      
           event.preventDefault(); // Recommended to stop the link from doing anything else
           document.dispatchEvent(new CustomEvent('funcIntraLaunch',
           {
              'detail': { task: 'run',
                          program: 'notepad.exe',
                          workingfolder: '',
                          switches: '',
                          recallapp: 'notepad',
                          showerrors: 'true'
                        } })); 
         });
     });
   </script>

<body>
   <a href="#" id="notepad_link">Open calculator</a>
</body>
</html>