Replace macro text
Not available in exe.
Syntax
s.setmacro([macro])
Parameters
s - str variable.
macro - QM item name (full,
case insensitive) or id (integer).
- If omitted or "" - QM item that is currently open in the code editor.
- Can be QM item path. For example, "\Mouse\Next" is macro "Next" in folder "Mouse".
- If sub-function, QM uses its parent function.
Remarks
Replaces QM item text.
The item must not be read-only.
The user can Undo if the item is currently open (is in the "Open items" list).
See also: getmacro, newitem