Plugin:MirLua/ru: Difference between revisions

From Miranda NG
Plugin:MirLua/ru
Jump to navigation Jump to search
(Created page with "== Дополнительные возможности ==")
No edit summary
Line 33: Line 33:
</code>
</code>


<div class="mw-translate-fuzzy">
== Модули ==
== Модули ==
</div>


* EN
* EN

Revision as of 03:53, 7 April 2018

Other languages:
MirLua
MirLua
Имя файла MirLua.dll
Автор Miranda NG team
Скачать
Стабильная версия: 32-bit, 64-bit
Версия в разработке: 32-bit, 64-bit

Расширяет функциональность Miranda NG с помощью скриптов на языке Lua.

Lua

Плагин использует Lua 5.3.4, поставляемый в виде библиотеки lua53.dll.

Дополнительные возможности

toansi

Encodes lua utf-8 string to ansi. It can be usefull for passing string as parameter to ansi function.

m.CallService('mRadio/Import', 0, toansi(m.Parse('%miranda_path%\\Plugins\\mradio.ini')))

Also it has a short version a.

m.CallService('DB/Ini/ImportFile', 0, a'import\\autoexec.ini')

toucs2

Same as toansi but for utf-16. Also it has a short version u.

tonumber

If it receives light userdata parameter then returns it address as number, otherwise uses standard lua tonumber behaviour.

topointer

Converts lua types bool, number, string to light userdata.

string.interpolate

Provides a more readable and convenient syntax to format string output.

local h = 'Hello' print('{h}, {w}!' % {w = 'World'})

Модули

Примеры

{{#subpages:Content:MirLua/Examples}}

Ссылки