Replace macro text

Not available in exe.

 

Syntax

s.setmacro([macro|iid])

 

Parameters

s - str variable.

macro - name of a macro or other item. Default: "" (item that is currently open in editor).

iid - QM item id. Integer.

 

Remarks

Replaces QM item's text. The item must not be read-only.

 

If macro begins with \, it is interpreted as path. For example, if you want to edit macro "Next", which is in "Mouse" folder, then it can be "\Mouse\Next".

 

See also: getmacro, newitem