APINGMACRO — List or change APING macros.

Syntax:
APINGMACRO /D /L /P #n=value #name=value…

/Ddisable highlight
/Llist all defined macros
/Ppage output
#n=valuecreate or delete a macro

A macro is a number sign followed by a number or a name, used as a shortcut for a hostname. To define a macro, specify a value:

apingmacro #42=www.h2g2.com

To delete a macro, omit the value:

apingmacro #42=

You can change more than one macro at a time:

apingmacro #42=www.h2g2.com #1=skynet.cyberdyne.com

You can create a name instead of a number. A valid name begins with a letter; may contain letters, digits, and underscores; and may be up to ten characters long. It may not match any of the magic names ROUTER, GW, DNS, DHCP, or WINS; or any of the above followed by a digit, like DHCP2.

apingmacro #jp=www.jpsoft.com

To list all your currently defined macros:

apingmacro /L


Once you have defined a macro, you can use it in the APING command or the @PINGTIME function, just like any other hostname:

aping #jp

echo %@pingtime[#jp]


Macros are stored in the registry. They will survive unloading the plugin or exiting the shell. Macros are shared across all instances of TCC.