Skip to content

Text window Orion Assistant

Hotride edited this page Dec 8, 2019 · 11 revisions

TextWindow is a static reference just like Orion so you can always get it.

Command format:

ReturnType NameSpace.name(requiredParameters, [optionalParameters=defaultValue]);

  • ReturnType - the return value of the function (void - the function returns nothing);

  • NameSpace - the scope of the function;

  • name - the name of the function;

  • requiredParameters - required parameters;

  • optionalParameters - optional parameters, the default value is indicated after the = sign


void TextWindow.Open();

Open the text box.


void TextWindow.Close();

Close the text box.


void TextWindow.Clear();

Clear the text box.


void TextWindow.Print('text');

Type the text in the text box.


Introduced in 2.0.13.0

void TextWindow.SetPos(x, y);

Move text windows to x and y screen coordinates.


void TextWindow.SetSize(width, height);

Sets text windows size by given width and height.


Introduced in 2.0.16.0

void TextWindow.SaveToFile('filePath');

Write contents of text windows into a file at filePath.

Clone this wiki locally