/**
\page macros_sub_page Macros
\tableofcontents
Macros are short text statements that contain imbedded references to text
data used by the program fldigi. A macro is accessed via the macro button
bar or function key.
\image html macrobuttons.png "Macro Buttons"
\image latex macrobuttons.png "Macro Buttons" width=6.0in
Macro definition files(s) are located in the $HOME/.fldigi/macros/ directory
and all have the extention ".mdf". The default set of macros are contained in the
file $HOME/.fldigi/macros/macros.mdf.
Fldigi will create this file with a set of default macros on its first
execution.
Fldigi supports up to 48 macro definitions in sets of 12. Macro
definitions are not recursive, that is; a macro cannot reference
another macro or itself. All 48 macro buttons can be displayed in a matrix.
\image html macro-matrix.png "Macro Buttons Matrix"
\image latex macro-matrix.png "Macro Buttons Matrix" width=6.0in
The matrix display is toggled on and off using the menu item
\image html view-hide-48.png ""
\image latex view-hide-48.png "" width=1.0in
The matrix display can be dragged off and restored to it's position below
the main menu. The drag button is the knurled vertical button on the left
edge of the matrix. Left click on the drag button and drag the matrix with
the mouse.
The imbedded references are similar to those used by DigiPan and other
fine modem programs. The imbedded reference is an uppercase plain
text descriptor contained with the \<\> brackets.
\section macro_tags Macro tags
Macro | Description
:---------: | :----------------------------
\ | my frequency
\ | mode
\ | configuration call
\ | configuration locator
\ | configuration name
\ | configuration QTH
\ | my RST
\ | configuration antenna
\ | Fldigi version
Macro | Description
:---------: | :----------------------------
\ | other stations callsign
\ | S/N or other data contained in first info field of status bar
\ | IMD or other data contained in second info field of status bar
\ | other stations locator
\ | other stations name
\ | other stations QTH
\ | other stations RST
Macro | Description
:---------: | :----------------------------
\ | map other stations locator on google
\ | map other stations address, latitude-longitude
locator as specified
|
\ | clear RX pane
\ | clear TX pane
Macro | Description
:---------: | :----------------------------
\ | rig freq has keyboard focus
Macro | Description
:---------: | :----------------------------
\ | text to NAME/QTH
\ | Digitalk On, Off, Toggle; this is a Windows only tag
and Digitalk must be running
\ | save QSO data to logbook immediately
\ | log at xmt time
\ | clear log fields
\ |submit the current log entry to www.eQSL.cc This macro tag
should be put before \ or \
Macro | Description
:---------: | :----------------------------
\ | insert current logbook time HHMM, ie 0919
\ | insert current local date-time in iso-8601 format, ie 2011-08-28 04:16-0500
\ | insert Local date-time, ie 2011-08-28 04:16-0500
\ | insert Zulu date-time in iso-8601 format, ie 08/28/2011 04:16 CDT
\ | insert Zulu date-time, ie 2011-08-28 09:16Z
\ | insert local time, ie 0416
\ | insert zulu time, ie 0916Z
\ | insert local date, ie 2011-08-28
\ | insert Zulu date, ie 2011-08-28
\
\ | insert current weather data from METAR as specified on
WX configuration tab. see WX configure replace xxxx with the 4 letter
METAR designator for a report on a station other than the one specified on
the weather configuration tab.
Macro | Description
:---------: | :----------------------------
\ | insert current value of contest counter
\ | decrement contest counter
\ | increment contest counter
\ | send exchange in string
\ | send exchange out string
\ | mark exchange in start
\ | mark exchange in end
\ | save marked text to contest exchange in
Macro | Description
:-------: | :----------------------------
\ | receive
\ | transmit
\ | toggle Transmit / Receive
Macro | Description
:--------: | :----------------------------
\ | search UP for next signal
\ | search DOWN for next signal
Macro | Description
:---------: | :----------------------------
\ | return to waterfall cursor to sweet spot
\ | move waterfall cursor to freq NNNN Hz
\ | same as left-clk on QSY button
\ | same as right-clk QSY button
\ | Qsy to transceiver frequency in kHz, optional waterfall
(Audio) frequency in Hz (If not specified, it i not changed). Several QSY
frequencies, or ranges of frequencies provided by one increment, can be
proposed, in which case the first frequency after the current frequency
is chosen.
Macro | Description
:---------: | :----------------------------
\ | send CAT command to transceiver to change to a valid mode
\ | send CAT command to transceiver to change to a valid filter
width example to QSY to sweetspot (center of bandpass filter) and select
narrow filter
Macro | Description
:---------: | :----------------------------
\ | insert text file; a file selection box will open when this tag is
selected during editing
\ | insert image file; a file selection box will open when this
tag is selected during editing
\ | insert image file; transmit in grey scale
\ | transmit video text
Macro | Description
:----------------------: | :----------------------------
\ | transmit idle signal for NN.nn sec
\ | repeat this macro every NN sec
\ | transmit single tone tune signal for NN sec
\ | insert delay of NN seconds before transmitting
\ | repeat macro continuously
\ | schedule execution to begin at time and optionally
date specified
Macro | Description
:-------------------: | :----------------------------
\ | transmit a CW callsign identifier
\ | transmit mode ID using waterfall video text
\ | transmit video text defined on ID configuration tab
\ | transmit RSID on, off, toggle
\ | receive RSID on, off, toggle
\ | transmit multiple RsID bursts
NN < 0 will transmit NN bursts for current modem and then return to Rx
NN > 0 will transmit NN bursts for current modem and continue in Tx
NN = 0 will transmit 1 bursts and continue (same as NN = 1)
\ | tones transmit DTMF tone sequence at start of
transmission; options W-wait n msec, default 0 L-tone symbol length n
in msec; default 50 msec '-', ' ' and ',' insert silence symbol
eg: \
Macro | Description
:------------------------: | :----------------------------
\ | CW QSK post-timing in milliseconds
\ | CW QSK pre-timing in milliseconds
\ | CW rise time in milliseconds
\ | CW WPM, ww = word rate, optional ff = Farnsworth rate
Macro | Description
:------------------------: | :----------------------------
\ | RigCAT user commands
\ | hex hex ... are sequential hexadecimal values
string is Ascii char sequence retnbr
is number of bytes in xcvr response ':retnbr'
is optional; retnbr set to 0 if missing
Macro | Description
:-----------------: | :----------------------------
\ | AFC on, off, toggle
\ | lock waterfall cursor; on, off, toggle
\ | Reverse on, off, toggle
Macro | Description
:--------------: | :----------------------------
\ | Insert current operating info with "text" into Rx stream, ie:
info text <<2013-01-12T21:18Z RTTY @ 14005000+0760>> which can be used to
return to a mode, rf, audio frequency.
\ | Cause transmission to pause at place of occurance in macro
text. "Pause/Break" key on keyboard resumes transmission
\ | set fldigi tx attenuator to value -30 dB <= val <= 0
\ | allow macro to contain a comment field; everything
between \< and \> is ignored by macro parser
\ | save the current macro definitions to the current file
Macro | Description
:---------: | :----------------------------
\ | load a new macro defs file; file prompt when editing macro
Macro | Description
:--------------: | :----------------------------
\ | modem timing test internal string
\ | modem timing test, spec' file
\ | modem timing test, string 's'
Macro | Description
:--------------: | :----------------------------
\ | WAV file; internal string
\ | WAV file; spec' file
\ | WAV file; string 's'
\section modem_macro_tags Modem macro tags
Macro tags are also assigned to each supported modem type and sub-modem type
that is supported by fldigi:
|
| Data Modems |
|
:--------------------- : | :--------------------: | :-------------: | :------------------: | :------------------:
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
\section other_modems Other Modems
The following modems perform other functions not involving data
transportation:
Non Data Modems | Description
:--------------: | :--------------:
| Null modem - Rx stream is discarded. Tx stream is silent but PTT is enabled
| SSB modem (place holder)
| \ref frequency_analyzer_page "Analyze Frequency"
| \ref fft_scan_page "Waterfall Power Measurement Frequency Scan"
| \ref digiscope_display_wwv_mode "Calibrate Sound Card"
Local references are specified during the program configuration and can
be changed during program operation.
Remote references are all part of the qso log field definitions and are
routinely changed from contact to contact.
Global references are for items like Greenwich Mean Time.
The macros.mdf file can be edited with any ascii text editor such as
kedit, gedit, geany, nano etc. But it is much easier to use the
built-in macro editor provided in the program.
\section macro_editor Macro Editor
Right click on any macro key (or the alternate set) and a macro editing
dialog opens with the current copy of that macro and its label. This looks
very similar to the DigiPan macro editor at the urging
of Skip Teller, KH6TY.
\image html macro-editor.png "Macro Editor"
\image latex macro-editor.png "Macro Editor" width=6.0in
The Text box is a mini-editor with a very limited set of control
functions. You can mark, bound and select text for deletion
(ctrl-X), copy (ctrl-C), and paste (ctrl-V). Marked text can also
be deleted with the delete or the backspace keys. Marked text
modification can also be invoked by using the mouse right click after
highlighting.
The macro reference in the pick list can be transfered to the current editing
cursor location. Highlight the desired macro reference and then press the
double \<\< arrow key for each occurance of the reference to be put into
the macro text. You can change the label name but any more than 8
characters may exceed the width of the button for the default sized
main dialog.
The \ and \ macro tags should have the NN
replaced with the time interval in seconds.
\\CQ CQ de
\ \ k\\
- will enable the PTT
- cause 5 seconds of idle signal
- send the CQ CQ de W1HKJ W1HKJ k
- disable PTT
- and count down 20 seconds before repeating the macro
- after sending the text the count down timer button (upper right
hand corner of main dialog) will display the current timer value in
seconds. Press this button to disable the timer.
- the timer be disabled if the Escape key is pressed, the T/R is
pressed, and macro key is pressed, or if a callsign is copied from the
Rx text area to the callsign logbook entry.
- the time will be disabled if any mouse activity occurs in the
waterfall control.
The label associated with each macro key can be individually annotated
with a symbol. Here are the symbols that are recognized by the
button label drawing routine:
\section macro_display_symbols Macro Display Symbols
\image html symbols.png "Symbols"
\image latex symbols.png "Symbols" width=2.5in
The @ sign may also be followed by the following optional
"formatting" characters, in this order:
- '#' forces square scaling, rather than distortion to the widget's
shape.
- +[1-9] or -[1-9] tweaks the scaling a little bigger or smaller.
- '$' flips the symbol horizontally, '%' flips it vertically.
- [0-9] - rotates by a multiple of 45 degrees. '5' and '6' do no
rotation while the others point in the direction of that key on a
numeric keypad. '0', followed by four more digits rotates the symbol by
that amount in degrees.
Thus, to show a very large arrow pointing downward you would use the
label string "@+92-\>".
Here are my macro buttons suitably annotated:
\image html macrobuttons.png "Macro Buttons"
\image latex macrobuttons.png "Macro Buttons" width=6.0in
There are 4 sets of 12 macro functions. You can move between the
4 sets using the keyboard and the mouse.
- Left click on the "1" button to move to set #2. Right click
on the "1" button to move to set #4.
- Move
the mouse to anywhere on the macro buttons. Use the scroll wheel
to move forward & backward through the macro sets
- Press the Alt-1, Alt-2, Alt-3 or Alt-4 to immediately change to
that macro set.
- The label for CQ is "CQ @\>|", denoting that both
\ and \ are present in the macro text.
- The label for QSO is "QSO @\>\>", denoting that only
\ is present in the macro text.
- The label for KN is "KN @||", denoting that only
\ is present in the macro text.
You could use any label that is symbolic to the function required.
Refer to the
FLTK web site
for a full list of label types.
If you modify the macros and do not save them ("Files/Save Macros" on
the main window) fldigi will prompt you to save the macros when you
exit the program if you have the
\ref ui_configuration_general_page "Exit Prompts" option selected.
\section contest_macro_tags Contest macro tags
Refer to \ref contest_how_to_page "Contest-How-To"
\ref macros_sub_page "Return to Top of Page"
\ref main_page "Return to Main Page"
*/