<ActionTemplates>
  <Action>
    <Name>Application.Exit</Name>
    <Description>Exits the application and returns an optional return code.</Description>
    <ReturnValueType />
    <Arguments>
      <Arg>
        <Name>ReturnCode</Name>
        <Description>The optional return code you want to set for the AutoPlay application's process.</Description>
        <Type>number</Type>
        <Default>0</Default>
        <Required>1</Required>
        <EasyMode>
          <Default>0</Default>
          <DataType>number</DataType>
          <Constraints>none</Constraints>
        </EasyMode>
      </Arg>
    </Arguments>
  </Action>
  <Action>
    <Name>Application.ExitScript</Name>
    <Description>Breaks out of the current block of script being executed.</Description>
    <ReturnValueType />
  </Action>
  <Action>
    <Name>Application.GetCurrentDialog</Name>
    <Description>Returns the name of the current dialog in the application.</Description>
    <ReturnValueType>string</ReturnValueType>
  </Action>
  <Action>
    <Name>Application.GetCurrentPage</Name>
    <Description>Returns the name of the current page in the application.</Description>
    <ReturnValueType>string</ReturnValueType>
  </Action>
  <Action>
    <Name>Application.GetDialogProperties</Name>
    <Description>Returns a table containing the properties of the specified dialog.</Description>
    <ReturnValueType>table</ReturnValueType>
    <Arguments>
      <Arg>
        <Name>DialogName</Name>
        <Description>The name of the dialog whose properties you want.</Description>
        <Type>string</Type>
        <Default />
        <Required>1</Required>
        <EasyMode>
          <Default />
          <DataType>dialogname</DataType>
          <Constraints>none</Constraints>
        </EasyMode>
      </Arg>
    </Arguments>
  </Action>
  <Action>
    <Name>Application.GetDialogs</Name>
    <Description>Returns a table containing the names of all of the dialogs in the application.</Description>
    <ReturnValueType>table</ReturnValueType>
    <Arguments />
  </Action>
  <Action>
    <Name>Application.GetDialogScript</Name>
    <Description>Returns a string containing the script from a dialog's event.</Description>
    <ReturnValueType>string</ReturnValueType>
    <Arguments>
      <Arg>
        <Name>DialogName</Name>
        <Description>The name of the dialog whose script you want.</Description>
        <Type>string</Type>
        <Default />
        <Required>1</Required>
        <EasyMode>
          <Default />
          <DataType>dialogname</DataType>
          <Constraints>none</Constraints>
        </EasyMode>
      </Arg>
      <Arg>
        <Name>EventName</Name>
        <Description>The name of the dialog's event.</Description>
        <Type>string</Type>
        <Default />
        <Required>1</Required>
        <EasyMode>
          <Default>"On Show"</Default>
          <DataType>string</DataType>
          <Constraints>1,*</Constraints>
        </EasyMode>
      </Arg>
    </Arguments>
  </Action>
  <Action>
    <Name>Application.GetLastError</Name>
    <Description>Returns the last error code.</Description>
    <ReturnValueType>number</ReturnValueType>
    <Arguments />
  </Action>
  <Action>
    <Name>Application.GetMenu</Name>
    <Description>Returns the application's menu bar structure in a table.</Description>
    <ReturnValueType>table</ReturnValueType>
    <Arguments />
  </Action>
  <Action>
    <Name>Application.GetPageProperties</Name>
    <Description>Returns a table containing the properties of the specified page.</Description>
    <ReturnValueType>table</ReturnValueType>
    <Arguments>
      <Arg>
        <Name>PageName</Name>
        <Description>The name of the page whose properties you want.</Description>
        <Type>string</Type>
        <Default />
        <Required>1</Required>
        <EasyMode>
          <Default />
          <DataType>pagename</DataType>
          <Constraints>none</Constraints>
        </EasyMode>
      </Arg>
    </Arguments>
  </Action>
  <Action>
    <Name>Application.GetPages</Name>
    <Description>Returns a table containing the names of all of the pages in the application.</Description>
    <ReturnValueType>table</ReturnValueType>
    <Arguments />
  </Action>
  <Action>
    <Name>Application.GetPageScript</Name>
    <Description>Returns the script on an event of a page.</Description>
    <ReturnValueType>string</ReturnValueType>
    <Arguments>
      <Arg>
        <Name>PageName</Name>
        <Description>The name of the page whose script you want.</Description>
        <Type>string</Type>
        <Default />
        <Required>1</Required>
        <EasyMode>
          <Default />
          <DataType>pagename</DataType>
          <Constraints>none</Constraints>
        </EasyMode>
      </Arg>
      <Arg>
        <Name>EventName</Name>
        <Description>The name of the page's event.</Description>
        <Type>string</Type>
        <Default />
        <Required>1</Required>
        <EasyMode>
          <Default>"On Show"</Default>
          <DataType>string</DataType>
          <Constraints>1,*</Constraints>
        </EasyMode>
      </Arg>
    </Arguments>
  </Action>
  <Action>
    <Name>Application.GetWndHandle</Name>
    <Description>Returns the numeric window handle for the application window.</Description>
    <ReturnValueType>number</ReturnValueType>
  </Action>
  <Action>
    <Name>Application.LoadValue</Name>
    <Description>Loads a value that was saved with the Application.SaveValue action.</Description>
    <ReturnValueType>string</ReturnValueType>
    <Arguments>
      <Arg>
        <Name>Section</Name>
        <Description>The name of the "section" that the value was saved in.</Description>
        <Type>string</Type>
        <Default />
        <Required>1</Required>
        <EasyMode>
          <Default>"Your_Application_Name"</Default>
          <DataType>string</DataType>
          <Constraints>1,*</Constraints>
        </EasyMode>
      </Arg>
      <Arg>
        <Name>Key</Name>
        <Description>The name of the "key" that identifies the value.</Description>
        <Type>string</Type>
        <Default />
        <Required>1</Required>
        <EasyMode>
          <Default>"Your_Key"</Default>
          <DataType>string</DataType>
          <Constraints>1,*</Constraints>
        </EasyMode>
      </Arg>
    </Arguments>
  </Action>
  <Action>
    <Name>Application.LoadActionPlugin</Name>
    <Description>Loads an action plugin file (.lmd).</Description>
    <ReturnValueType />
    <Arguments>
      <Arg>
        <Name>Filename</Name>
        <Description>The path to the action plugin file (.lmd).</Description>
        <Type>string</Type>
        <Default />
        <Required>1</Required>
        <EasyMode>
          <Default>"AutoPlay\\Plugins\\MyModule.lmd"</Default>
          <DataType>string</DataType>
          <Constraints>none</Constraints>
        </EasyMode>
      </Arg>
    </Arguments>
  </Action>
  <Action>
    <Name>Application.LoadScript</Name>
    <Description>Loads and executes an external script file (.lua) if it hasn't been loaded already.</Description>
    <ReturnValueType />
    <Arguments>
      <Arg>
        <Name>Filename</Name>
        <Description>The path to the external script file (.lua). Click the browse button to select a file.</Description>
        <Type>string</Type>
        <Default />
        <Required>1</Required>
        <EasyMode>
          <Default>"AutoPlay\\Scripts\\MyScript.lua"</Default>
          <DataType>fileedit</DataType>
          <Constraints>Scripts</Constraints>
        </EasyMode>
      </Arg>
    </Arguments>
  </Action>
  <Action>
    <Name>Application.MakeKeywordIndex</Name>
    <Description>Scans all pages in the project for keywords and returns a table that is indexed by keyword.</Description>
    <ReturnValueType>table</ReturnValueType>
    <Arguments>
      <Arg>
        <Name>SortPages</Name>
        <Description>Whether to sort the list of pages where each keyword is found, or keep the pages in the same order as in the project.</Description>
        <Type>boolean</Type>
        <Default>true</Default>
        <Required>0</Required>
        <EasyMode>
          <Default>true</Default>
          <DataType>boolean</DataType>
          <Constraints>none</Constraints>
        </EasyMode>
      </Arg>
    </Arguments>
  </Action>
  <Action>
    <Name>Application.Minimize</Name>
    <Description>Minimizes the application's window to the task bar.</Description>
    <ReturnValueType />
  </Action>
  <Action>
    <Name>Application.Restore</Name>
    <Description>Restores the application's window to the size and position it had before it was minimized.</Description>
    <ReturnValueType />
  </Action>
  <Action>
    <Name>Application.RunScriptFile</Name>
    <Description>Executes the contents of an external script file (.lua).</Description>
    <ReturnValueType />
    <Arguments>
      <Arg>
        <Name>Filename</Name>
        <Description>The path to the external script file (.lua). Click the browse button to select a file.
</Description>
        <Type>string</Type>
        <Default />
        <Required>1</Required>
        <EasyMode>
          <Default>"AutoPlay\\Scripts\\MyScript.lua"</Default>
          <DataType>fileedit</DataType>
          <Constraints>Scripts</Constraints>
        </EasyMode>
      </Arg>
    </Arguments>
  </Action>
  <Action>
    <Name>Application.SaveValue</Name>
    <Description>Saves a value to the user's system so it can be retrieved later with an Application.LoadValue action.
</Description>
    <ReturnValueType />
    <Arguments>
      <Arg>
        <Name>Section</Name>
        <Description>The name of the "section" that the value will be saved in.</Description>
        <Type>string</Type>
        <Default />
        <Required>1</Required>
        <EasyMode>
          <Default>"Your_Application_Name"</Default>
          <DataType>string</DataType>
          <Constraints>1,*</Constraints>
        </EasyMode>
      </Arg>
      <Arg>
        <Name>Key</Name>
        <Description>The name of the "key" that will identify the value.</Description>
        <Type>string</Type>
        <Default />
        <Required>1</Required>
        <EasyMode>
          <Default>"Your_Key"</Default>
          <DataType>string</DataType>
          <Constraints>1,*</Constraints>
        </EasyMode>
      </Arg>
      <Arg>
        <Name>Value</Name>
        <Description>The value to save.</Description>
        <Type>string</Type>
        <Default />
        <Required>1</Required>
        <EasyMode>
          <Default>"Your_Value"</Default>
          <DataType>string</DataType>
          <Constraints>0,*</Constraints>
        </EasyMode>
      </Arg>
    </Arguments>
  </Action>
  <Action>
    <Name>Application.SearchKeywords</Name>
    <Description>Searches all keywords in all pages in the project and returns a table of search results.</Description>
    <ReturnValueType>table</ReturnValueType>
    <Arguments>
      <Arg>
        <Name>SearchFor</Name>
        <Description>The text to search for.</Description>
        <Type>string</Type>
        <Default />
        <Required>1</Required>
        <EasyMode>
          <Default />
          <DataType>string</DataType>
          <Constraints>1,*</Constraints>
        </EasyMode>
      </Arg>
      <Arg>
        <Name>AllowPartialMatch</Name>
        <Description>Whether to find keywords that contain the search text as a substring, or to only return keywords that match the search text exactly.</Description>
        <Type>boolean</Type>
        <Default>true</Default>
        <Required>0</Required>
        <EasyMode>
          <Default>true</Default>
          <DataType>boolean</DataType>
          <Constraints>none</Constraints>
        </EasyMode>
      </Arg>
      <Arg>
        <Name>CaseSensitive</Name>
        <Description>Whether the search is case-sensitive.</Description>
        <Type>boolean</Type>
        <Default>true</Default>
        <Required>0</Required>
        <EasyMode>
          <Default>true</Default>
          <DataType>boolean</DataType>
          <Constraints>none</Constraints>
        </EasyMode>
      </Arg>
    </Arguments>
  </Action>
  <Action>
    <Name>Application.SetDialogProperties</Name>
    <Description>Sets the properties of a dialog.</Description>
    <ReturnValueType />
    <Arguments>
      <Arg>
        <Name>DialogName</Name>
        <Description>The name of the dialog whose properties you want to modify.</Description>
        <Type>string</Type>
        <Default />
        <Required>1</Required>
        <EasyMode>
          <Default />
          <DataType>dialogname</DataType>
          <Constraints>none</Constraints>
        </EasyMode>
      </Arg>
      <Arg>
        <Name>Properties</Name>
        <Description>A table containing the properties you want to modify, indexed by name.</Description>
        <Type>table</Type>
        <Default />
        <Required>1</Required>
        <EasyMode>
          <Default>nil</Default>
          <DataType>table</DataType>
          <Constraints>none</Constraints>
        </EasyMode>
      </Arg>
    </Arguments>
  </Action>
  <Action>
    <Name>Application.SetDialogScript</Name>
    <Description>Sets the script on an event of a dialog.</Description>
    <ReturnValueType />
    <Arguments>
      <Arg>
        <Name>DialogName</Name>
        <Description>The name of the dialog whose script you want to set.</Description>
        <Type>string</Type>
        <Default />
        <Required>1</Required>
        <EasyMode>
          <Default />
          <DataType>dialogname</DataType>
          <Constraints>none</Constraints>
        </EasyMode>
      </Arg>
      <Arg>
        <Name>EventName</Name>
        <Description>The name of the dialog's event.</Description>
        <Type>string</Type>
        <Default />
        <Required>1</Required>
        <EasyMode>
          <Default>"On Show"</Default>
          <DataType>string</DataType>
          <Constraints>1,*</Constraints>
        </EasyMode>
      </Arg>
      <Arg>
        <Name>Script</Name>
        <Description>The script to set for the event.</Description>
        <Type>string</Type>
        <Default />
        <Required>1</Required>
        <EasyMode>
          <Default>""</Default>
          <DataType>string</DataType>
          <Constraints>none</Constraints>
        </EasyMode>
      </Arg>
    </Arguments>
  </Action>
  <Action>
    <Name>Application.SetLastError</Name>
    <Description>Changes the last error code.</Description>
    <ReturnValueType />
    <Arguments>
      <Arg>
        <Name>ErrorCode</Name>
        <Description>A numeric code indicating the error code you wish to set.</Description>
        <Type>number</Type>
        <Default />
        <Required>1</Required>
        <EasyMode>
          <Default>1153</Default>
          <DataType>number</DataType>
          <Constraints>*,*</Constraints>
        </EasyMode>
      </Arg>
    </Arguments>
  </Action>
  <Action>
    <Name>Application.SetMenu</Name>
    <Description>Sets the application's main menu.</Description>
    <ReturnValueType />
    <Arguments>
      <Arg>
        <Name>Menu</Name>
        <Description>The table of menu data.</Description>
        <Type>table</Type>
        <Default />
        <Required>1</Required>
        <EasyMode>
          <Default>tbMenuData</Default>
          <DataType>table</DataType>
          <Constraints>none</Constraints>
        </EasyMode>
      </Arg>
    </Arguments>
  </Action>
  <Action>
    <Name>Application.SetMenuBarActive</Name>
    <Description>Activates or deactivates the applications menu bar.</Description>
    <ReturnValueType />
    <Arguments>
      <Arg>
        <Name>Activate</Name>
        <Description>Whether to activate or deactivate the applications menu bar.</Description>
        <Type>boolean</Type>
        <Default>true</Default>
        <Required>0</Required>
        <EasyMode>
          <Default>true</Default>
          <DataType>boolean</DataType>
          <Constraints>none</Constraints>
        </EasyMode>
      </Arg>
    </Arguments>
  </Action>
  <Action>
    <Name>Application.SetPageProperties</Name>
    <Description>Sets the properties of a page.</Description>
    <ReturnValueType />
    <Arguments>
      <Arg>
        <Name>PageName</Name>
        <Description>The name of the page whose properties you want to modify.</Description>
        <Type>string</Type>
        <Default />
        <Required>1</Required>
        <EasyMode>
          <Default />
          <DataType>pagename</DataType>
          <Constraints>none</Constraints>
        </EasyMode>
      </Arg>
      <Arg>
        <Name>Properties</Name>
        <Description>A table containing the properties you want to modify, indexed by name.</Description>
        <Type>table</Type>
        <Default />
        <Required>1</Required>
        <EasyMode>
          <Default>nil</Default>
          <DataType>table</DataType>
          <Constraints>none</Constraints>
        </EasyMode>
      </Arg>
    </Arguments>
  </Action>
  <Action>
    <Name>Application.SetPageScript</Name>
    <Description>Sets the script on an event of a page.</Description>
    <ReturnValueType />
    <Arguments>
      <Arg>
        <Name>PageName</Name>
        <Description>The name of the page whose script you want to set.</Description>
        <Type>string</Type>
        <Default />
        <Required>1</Required>
        <EasyMode>
          <Default />
          <DataType>pagename</DataType>
          <Constraints>none</Constraints>
        </EasyMode>
      </Arg>
      <Arg>
        <Name>EventName</Name>
        <Description>The name of the page's event.</Description>
        <Type>string</Type>
        <Default />
        <Required>1</Required>
        <EasyMode>
          <Default>"On Show"</Default>
          <DataType>string</DataType>
          <Constraints>1,*</Constraints>
        </EasyMode>
      </Arg>
      <Arg>
        <Name>Script</Name>
        <Description>The script to set for the event.</Description>
        <Type>string</Type>
        <Default />
        <Required>1</Required>
        <EasyMode>
          <Default>""</Default>
          <DataType>string</DataType>
          <Constraints>none</Constraints>
        </EasyMode>
      </Arg>
    </Arguments>
  </Action>
  <Action>
    <Name>Application.SetRedraw</Name>
    <Description>Sets whether or not the application will redraw objects.</Description>
    <ReturnValueType />
    <Arguments>
      <Arg>
        <Name>Redraw</Name>
        <Description>Whether or not the object will be redrawn.</Description>
        <Type>boolean</Type>
        <Default>true</Default>
        <Required>0</Required>
        <EasyMode>
          <Default>true</Default>
          <DataType>boolean</DataType>
          <Constraints>none</Constraints>
        </EasyMode>
      </Arg>
    </Arguments>
  </Action>
  <Action>
    <Name>Application.SetSysTrayIcon</Name>
    <Description>Sets the application's system tray icon using an icon file or executable, or reverts back to the original icon.</Description>
    <ReturnValueType>boolean</ReturnValueType>
    <Arguments>
      <Arg>
        <Name>IconPath</Name>
        <Description>The full path to a file containing the icon you want to use. The most common types are icon files (.ico) and executables (.exe). If no icon path is specified, the system tray icon will revert back to its original.</Description>
        <Type>string</Type>
        <Default />
        <Required>0</Required>
        <EasyMode>
          <Default>""</Default>
          <DataType>fileedit</DataType>
          <Constraints>Docs</Constraints>
        </EasyMode>
      </Arg>
      <Arg>
        <Name>IconIndex</Name>
        <Description>The zero-based index describing which icon to use in the executable file. For example, an icon index of 2 means it will use the third icon in the file. For .ico files, leave this value 0.</Description>
        <Type>number</Type>
        <Default>0</Default>
        <Required>0</Required>
        <EasyMode>
          <Default>0</Default>
          <DataType>number</DataType>
          <Constraints>0,*</Constraints>
        </EasyMode>
      </Arg>
    </Arguments>
  </Action>
  <Action>
    <Name>Application.ShowPopupMenu</Name>
    <Description>Shows a popup menu.</Description>
    <ReturnValueType>number</ReturnValueType>
    <Arguments>
      <Arg>
        <Name>X</Name>
        <Description>The X coordinate of the menu.</Description>
        <Type>number</Type>
        <Default />
        <Required>1</Required>
        <EasyMode>
          <Default>0</Default>
          <DataType>number</DataType>
          <Constraints>none</Constraints>
        </EasyMode>
      </Arg>
      <Arg>
        <Name>Y</Name>
        <Description>The Y coordinate of the menu.</Description>
        <Type>number</Type>
        <Default />
        <Required>1</Required>
        <EasyMode>
          <Default>0</Default>
          <DataType>number</DataType>
          <Constraints>none</Constraints>
        </EasyMode>
      </Arg>
      <Arg>
        <Name>Menu</Name>
        <Description>The table of menu data.</Description>
        <Type>table</Type>
        <Default />
        <Required>1</Required>
        <EasyMode>
          <Default>tbMenuData</Default>
          <DataType>table</DataType>
          <Constraints>none</Constraints>
        </EasyMode>
      </Arg>
      <Arg>
        <Name>HAlign</Name>
        <Description>The horizontal alignment of the menu relative to X.</Description>
        <Type>number</Type>
        <Default>TPM_LEFTALIGN</Default>
        <Required>0</Required>
        <EasyMode>
          <Default>TPM_LEFTALIGN</Default>
          <DataType>combo</DataType>
          <Constraints>TPM_LEFTALIGN,TPM_CENTERALIGN,TPM_RIGHTALIGN</Constraints>
        </EasyMode>
      </Arg>
      <Arg>
        <Name>VAlign</Name>
        <Description>The vertical alignment of the menu relative to Y.</Description>
        <Type>number</Type>
        <Default>TPM_TOPALIGN</Default>
        <Required>0</Required>
        <EasyMode>
          <Default>TPM_TOPALIGN</Default>
          <DataType>combo</DataType>
          <Constraints>TPM_TOPALIGN,TPM_VCENTERALIGN,TPM_BOTTOMALIGN</Constraints>
        </EasyMode>
      </Arg>
      <Arg>
        <Name>WaitForReturn</Name>
        <Description>Whether to wait for the context menu to finish displaying before returning.</Description>
        <Type>boolean</Type>
        <Default>true</Default>
        <Required>0</Required>
        <EasyMode>
          <Default>true</Default>
          <DataType>boolean</DataType>
          <Constraints>none</Constraints>
        </EasyMode>
      </Arg>
      <Arg>
        <Name>ClientCoordinates</Name>
        <Description>Whether the X and Y position are in client coordinates (true) or screen coordinates (false).</Description>
        <Type>boolean</Type>
        <Default>true</Default>
        <Required>0</Required>
        <EasyMode>
          <Default>true</Default>
          <DataType>boolean</DataType>
          <Constraints>none</Constraints>
        </EasyMode>
      </Arg>
    </Arguments>
  </Action>
  <Action>
    <Name>Application.Sleep</Name>
    <Description>Causes the application to sleep for a desired period of time.</Description>
    <ReturnValueType />
    <Arguments>
      <Arg>
        <Name>Time</Name>
        <Description>The time to sleep, in milliseconds.</Description>
        <Type>number</Type>
        <Default />
        <Required>1</Required>
        <EasyMode>
          <Default>1000</Default>
          <DataType>number</DataType>
          <Constraints>0,*</Constraints>
        </EasyMode>
      </Arg>
    </Arguments>
  </Action>
</ActionTemplates>