home *** CD-ROM | disk | FTP | other *** search
/ ftp.tcs3.com / ftp.tcs3.com.tar / ftp.tcs3.com / DRIVERS / Audio / Office2010 / ProPlus.WW / ProPsWW.cab / FORMSMACROTEMPLATE.HTML3 < prev    next >
Text File  |  2007-02-04  |  2KB  |  71 lines

  1. <!-- *********************************************************************
  2.                                  Notice
  3.  
  4. You may not modify, use, copy or distribute this file or its contents. 
  5. Internal interfaces referenced in this file are nonpublic, unsupported 
  6. and subject to change without notice. These interfaces may not be 
  7. utilized in other software applications or components.
  8.  
  9.  
  10. ********************************************************************* -->
  11.  
  12. <!-- saved from url=(0025)http://www.microsoft.com/ -->
  13.  
  14. <HTML>
  15. <HEAD>
  16.     <SCRIPT LANGUAGE="JavaScript" SRC="PublicFunctions.js"></SCRIPT> 
  17.     <SCRIPT LANGUAGE="JavaScript" SRC="utilityfunctions.js"></SCRIPT>
  18.     <SCRIPT LANGUAGE="JavaScript">
  19.     <!--
  20.         g_IsMacro = true;
  21.  
  22.         document.oncontextmenu = contextMenuEvent;
  23.  
  24.         function contextMenuEvent()
  25.         {
  26.             // Right-click context menu will not appear unless Ctrl is help down.
  27.             if (!event.ctrlKey)
  28.                 event.returnValue = false;
  29.         }
  30.  
  31.         var QueryString = String(window.location.search).substring(1);
  32.         var g_MacroID = Number(getValueFromQueryString("MacroID", QueryString));
  33.         var g_MacroCode = "";
  34.         try
  35.         {
  36.             var Transaction = window.external.IGrooveFormsToolUIMacroWindowPrivate.OpenTransaction();
  37.  
  38.             var g_MacroCode = window.external.IGrooveFormsToolUIMacroWindowPrivate.OpenMacroScript(g_MacroID);
  39.             document.write(g_MacroCode);
  40.  
  41.             Transaction.Commit();
  42.         }
  43.         catch (error)
  44.         {
  45.             alert("Error: " + error.description);
  46.             Transaction.Abort();
  47.             window.external.IGrooveFormsToolUIMacroWindowPrivate.MacroAborted(error.description, error.number);
  48.         }
  49.  
  50.         function LoadMacro()
  51.         {
  52.             window.setTimeout("BeginMacro()", 250);
  53.         }
  54.     
  55.         function BeginMacro()
  56.         {
  57.             window.external.IGrooveFormsToolUIMacroWindowPrivate.StartMacro(g_MacroID, document);
  58.         }
  59.     // -->
  60.     </SCRIPT>
  61. </HEAD>
  62. <BODY BGCOLOR="#000000" SCROLL="no" ONLOAD="LoadMacro();" STYLE="padding:0px;margin:0px">
  63.  
  64. <IMG SRC="macroprogress.gif"/>
  65. <SCRIPT LANGUAGE="JavaScript">
  66. // for debug purposes you can see the script
  67. //document.write("<textarea rows=25 cols=100>" + g_MacroCode + "</textarea>");
  68. </SCRIPT>
  69.  
  70. </BODY>
  71. </HTML>