Plugin:MirLua/ru: Difference between revisions
(Imported translation using page migration) |
(Updating to match new version of source page) |
||
Line 2: | Line 2: | ||
Расширяет функциональность Miranda NG с помощью скриптов на языке Lua. | Расширяет функциональность Miranda NG с помощью скриптов на языке Lua. | ||
== Lua == | |||
The plugin uses Lua 5.3.4 which is shipped as a shared library lua53.dll. | |||
== Additional functions == | |||
=== toansi === | |||
Encodes lua utf-8 string to ansi. It can be usefull for passing string as parameter to ansi function. | |||
<code>m.CallService('mRadio/Import', 0, toansi(m.Parse('%miranda_path%\\Plugins\\mradio.ini')))</code> | |||
Also it has a short version '''a'''. | |||
<code>m.CallService('DB/Ini/ImportFile', 0, a'import\\autoexec.ini')</code> | |||
=== 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. | |||
<code> | |||
local h = 'Hello' | |||
print('{h}, {w}!' % {w = 'World'}) | |||
</code> | |||
<div class="mw-translate-fuzzy"> | |||
== Модули == | == Модули == | ||
</div> | |||
* [[Plugin:MirLua/ru/m_clist|m_clist]] | * [[Plugin:MirLua/ru/m_clist|m_clist]] |
Revision as of 16:15, 5 April 2018
MirLua | |
---|---|
Имя файла | MirLua.dll |
Автор | Miranda NG team |
Скачать | |
Стабильная версия: | 32-bit, 64-bit |
Версия в разработке: | 32-bit, 64-bit |
Расширяет функциональность Miranda NG с помощью скриптов на языке Lua.
Lua
The plugin uses Lua 5.3.4 which is shipped as a shared library lua53.dll.
Additional functions
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'})
Модули
- m_clist
- Plugin:MirLua/Module/m core
- Plugin:MirLua/Module/m database
- Plugin:MirLua/Module/m genmenu
- Plugin:MirLua/Module/m hotkeys
- Plugin:MirLua/Module/m icolib
- Plugin:MirLua/Module/m sounds
Примеры
{{#subpages:Content:MirLua/Examples}}
Ссылки