Camera setup
Similar to Cam-actions, macros let you perform actions at a prescribed time. Unlike Cam-actions which are performed at a given time, macros are performed when you are live viewing.
[ camnet camsetup, macros ]
Press Add. Set the name to give this macro (to delete a macro set its name to delete macro). A tilde (~) can be added before the name to have it sort last when presented in the macro-to-send list.
To send the macro, get to the Macro panel by pressing the Macro button at the Live video transport panel. From there, select the macro you want to send, then press Send.
Set the CGI to send in the Macro CGI or script pathname field. CGIs should start with a / (forward slash). If you need to use a PUT or POST method, include that with the CGI. For example:
      POST /cgi-bin/camctrl.cgi?button=Calibrate&calibrate=go&return=about%3Ablank
You can also include a body entity by separating the body from the URI with two pair of CRLF: \r\n\r\n (as regular text, not binary). The CGI is to be a single line. The editbox can handle a (single) line up to 2000 characters.

[ camnet camsetup, macros ]
A few example macros follow. These are similar to event-actions (exec new) and cam-actions (CGI and scripts, including value substitution). Macros, however, need the action (file, exec new) included with the macro you enter.
      file "../macros/1031_lights.txt"
      file "../macros/1031_lightsSub.txt"
      exec new "c:\windows\system32\cmd.exe" /c "c:\camnet\eaBell.cmd"
You should put quotes around pathnames you enter here, but not around the CGI text and not around file and not around exec new, as you enter it. These will be quoted by Camnet, as seen in the menu list at the bottom, and in the actual cam.cfg file.

You sometimes see forward slashes used as path separators in this guide. You can use backslashes, and probably should, for Windows files.