User manual

Automation Protocol Easytext Commands
Miranda Technologies Ltd Page 221
Example:
void ChangeFont(int Layer, int BoxNo, int Size,
int Col, char *FontFileName)
{
remote_send("Z2%01x%02x%02x%06x%s", Layer,
BoxNo, Size, Col, FontFileName);
}
The font name relates to the font filename to be used in the graphic. For
example ‘Times New Roman’ must be addressed as ‘times.ttf’.
The size is the ‘point size’ of the font. Note that points do not directly equate
to pixels. The font’s design determines this.
This command will not update the text box on screen - the settings take effect
when the ‘Render Box’ command is issued.
Set Transparency ZA
The transparency of an image or text can be set with this command.
CMD Param_1 Param_2 Param_3
ZA %01x
Layer No.
%02x
Image / Text Box No.
%02x
Transparency
Example:
void ChangeTextBgnd(int Layer, int BoxNo,
int Transparency)
{
remote_send ("%01x%02x%02x", layer, BoxNo,
Transparency);
}
A transparency of 255 (0xFF) is fully opaque, and 0 is transparent.