CQ macros
Jump to navigation
Jump to search
You can use macros in the text of CW CQ, in the file name of SSB CQ and in the template of the recorded file names in Audio. Macros starting with $ are case insensitive.
- $$ - character $
- $B - callsign of the opposite station if it differs from the callsign which was sent as $C. Useful for "$B TU 73" in run mode. Does not work with Winkey and cwdaemon, because they do not tell Tucnak what has been sent.
- $C - callsign of the opposite station. Warning! The callsign may contain a stroke, then there can be a problem to use the macro in the file name of the SSB CQ. Look at $V.
- $D - date of contest (20031228)
- $E - if a contest code was entered during recording, the string "code" will be added. Useful for the post-contest record check, you can see the important files by their file names.
- $I - contents of the input line. Dots are replaced by question marks. A good idea is to follow $I by a question mark in the CQ definition.
- $J - name of the opposite station from the name database
- $N - contest number from the opposite station. The leading zeros are sent as the letter t (001 is sent as tt1).
- $O - operator's callsign (for the file names of the SSB CQ). If the operator is not set, it is your callsign.
- $R - report from the opposite station. The digit 9 is sent as the letter n (599 is sent as 5nn).
- $S - serial number of the record sample
- $T - contest directory (/home/ok1zia/tucnak/20031004.2)
- $V - callsign of the opposite station, the stroke character is exchanged by the underline character
- $W - locator of the opposite station
- $X - optional exchange from the opposite station
- $MC - my callsign
- $MN - contest number to the opposite station (with the leading zeros sent as t). For the band or for all bands depending on Global QSO NR
- $MR - report to the opposite station (the digit 9 is sent as n)
- $MW - my locator
- $MX - my optional exchange
If a macro has no value (for example you have not entered the callsign yet), Tucnak does not run the CW message, unless Allow if some item is undefined is checked in the dialog of the message.
A '~' at the beginning of a file name is replaced by your home directory.
You can also use the case sensitive macros from strftime(3). The time is UTC. For example:
- %d - day of month 01..31
- %H - hours 00..23
- %M - minutes 00..59
- %m - month 01..12
- %S - seconds 00..59
- %Y - year (for example 2026)
For others look at the manual page man 3 strftime.
Macros do not work in all contexts, only in the places which are listed at the beginning of this page.