Skip to content

Latest commit



39 lines (37 loc) · 2.96 KB

File metadata and controls

39 lines (37 loc) · 2.96 KB

How to Write Your own Custom Action

Let's say, you want to write a custom action that creates a new mail in Outlook and adds the current file as an attachment. For this walkthrough we'll start writing the custom action for Excel, but of course we're able to copy the action to other applications later.

  • In Emaroo, open the Settings tab ( ).
  • In the "Applications" list on the, select the tool/application (in this case Excel):
  • In the "Custom Actions for ..." list, click the "Add new" button (or press Strg+N) to create a new custom action:
  • Let's choose a short name:
  • Next, we need to specify the executable. The idea is to use Outlook, and it would be easy to use the "Browse..." button to specify the absolute path of outlook.exe. Instead, we'll use the text macros of Emaroo (which are similar to those in the build events of Visual Studio). While Emaroo doesn't know the full path of Outlook's executable, it does know the full path of Word's (and word.exe is in the same folder as outlook.exe). So let's open the context menu on the "Executable" input field...
  • ...and use the "ExeDirPath" macro. To maximize portability across computers, we'll use the newest version of Word instead of a specific one:
  • In the arguments, we'll use some Outlook command line parameters to do the magic. The /a parameter specifies the file to be attached, so we'll need another macro here:
  • If you look at the full command line, you'll get an idea how to build command lines:
  • For this custom action, we don't need to specify a workind directory, so we'll skip the "Start in" input field.
  • A proper tooltip for the custom action would be nice, so let's click the "Tooltip" expander and enter some text:
  • Done!
  • Press "OK" to close the dialog and you'll see the custom action in the list:


  • Click the "" icon or press Ctrl+C to copy the custom action to the clipboard.
  • You can now select another application in the "Applications" list...

    and paste the custom action there.
  • Or you paste the custom action into a text editor, an email, etc. to share it with others. The custom action described above looks like this: