Plugin:MirLua/pl: Difference between revisions

From Miranda NG
Plugin:MirLua/pl
Jump to navigation Jump to search
(Updating to match new version of source page)
(Updating to match new version of source page)
 
(18 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<languages/>{{PluginCard}}
<languages/>{{PluginCard}}
Extends Miranda NG functionality with Lua scripts.
Poszerza funkcjonalność Mirandy NG dzięki skryptom Lua.


== Modules ==
== Lua ==
Wtyczka używa Lua 5.3.4, która jest dołączana jako biblioteka dynamiczna lua53.dll.


* [[Plugin:MirLua/ru/m_clist|m_clist]]
== Dodatkowe funkcje ==
* [[Plugin:MirLua/en/m_core|m_core]]
* [[Plugin:MirLua/en/m_database|m_database]]
* [[Plugin:MirLua/en/m_genmenu|m_genmenu]]
* [[Plugin:MirLua/en/m_hotkeys|m_hotkeys]]
* [[Plugin:MirLua/en/m_icolib|m_icolib]]
* [[Plugin:MirLua/en/m_sounds|m_sounds]]


== Examples ==
=== toansi ===
Encodes lua utf-8 string to ansi. It can be useful for passing string as parameter to ansi function.


{{Content:MirLua/Examples}}
<code>m.CallService('mRadio/Import', 0, toansi(m.Parse('%miranda_path%\\Plugins\\mradio.ini')))</code>


== External links ==
Also it has a short version '''<code>a</code>'''.


* [https://forum.miranda-ng.org/index.php?topic=4161.0 Forum topic dedicated to script examples]{{RefLang|ru}}
<code>m.CallService('DB/Ini/ImportFile', 0, a'import\\autoexec.ini')</code>
* [https://www.lua.org Lua website]
 
* [[wikipedia:en:Lua_(programming_language)|Lua in Wikipedia]]
=== toucs2 ===
Same as <code>toansi</code> but for utf-16. Also it has a short version '''<code>u</code>'''.
 
=== tonumber ===
If it receives <code>light userdata</code> parameter then returns it address as number, otherwise uses standard lua <code>tonumber</code> behavior.
 
=== topointer ===
Converts lua types <code>bool</code>, <code>number</code>, <code>string</code> to  <code>light userdata</code>.
 
=== string.interpolate ===
Provides a more readable and convenient syntax to format string output.
 
<code>
local h = 'Hello'
print('{h}, {w}!' % {w = 'World'})
</code>
 
== Moduły wewnętrzne ==
* [[Special:MyLanguage/Plugin:MirLua/Module/m_clist|m_clist]]
* [[Special:MyLanguage/Plugin:MirLua/Module/m_core|m_core]]
* [[Special:MyLanguage/Plugin:MirLua/Module/m_database|m_database]]
* [[Special:MyLanguage/Plugin:MirLua/Module/m_genmenu|m_genmenu]]
* [[Special:MyLanguage/Plugin:MirLua/Module/m_hotkeys|m_hotkeys]]
* [[Special:MyLanguage/Plugin:MirLua/Module/m_http|m_http]]
* [[Special:MyLanguage/Plugin:MirLua/Module/m_icolib|m_icolib]]
* [[Special:MyLanguage/Plugin:MirLua/Module/m_json|m_json]]
* [[Special:MyLanguage/Plugin:MirLua/Module/m_message|m_message]]
* [[Special:MyLanguage/Plugin:MirLua/Module/m_options|m_options]]
* [[Special:MyLanguage/Plugin:MirLua/Module/m_protocols|m_protocols]]
* [[Special:MyLanguage/Plugin:MirLua/Module/m_sounds|m_sounds]]
* [[Special:MyLanguage/Plugin:MirLua/Module/m_srmm|m_srmm]]
 
 
* EN
** [[Plugin:MirLua/en/m_core|m_core]]
** [[Plugin:MirLua/en/m_database|m_database]]
** [[Plugin:MirLua/en/m_genmenu|m_genmenu]]
** [[Plugin:MirLua/en/m_hotkeys|m_hotkeys]]
** [[Plugin:MirLua/en/m_icolib|m_icolib]]
** [[Plugin:MirLua/en/m_sounds|m_sounds]]
 
* RU
** [[Plugin:MirLua/ru/m_clist|m_clist]]
** [[Plugin:MirLua/ru/m_core|m_core]]
** [[Plugin:MirLua/ru/m_database|m_database]]
** [[Plugin:MirLua/ru/m_genmenu|m_genmenu]]
** [[Plugin:MirLua/ru/m_hotkeys|m_hotkeys]]
** [[Plugin:MirLua/ru/m_icolib|m_icolib]]
** [[Plugin:MirLua/ru/m_sounds|m_sounds]]
 
== Przykłady ==
 
[[Special:PrefixIndex/Content:MirLua/Examples/|Some examples]].
 
<!-- Todo use this after https://github.com/ProfessionalWiki/SubPageList/issues/74 will be fixed
{{Content:MirLua/Examples}} -->
 
== Zewnętrzne linki ==
 
* [https://forum.miranda-ng.org/index.php?topic=4161.0 Temat na forum dedykowany przykładowym skryptom]{{RefLang|ru}}
* [https://www.lua.org Strona domowa Lua]
* [[wikipedia:en:Lua_(programming_language)|Lua na Wikipedii]]


{{PluginGroups}}
{{PluginGroups}}

Latest revision as of 17:54, 28 September 2023

MirLua
MirLua
Nazwa pliku MirLua.dll
Autor Miranda NG team
Pobierz
Wersja stabilna: 32-bit, 64-bit
Wersja rozwojowa: 32-bit, 64-bit

Poszerza funkcjonalność Mirandy NG dzięki skryptom Lua.

Lua

Wtyczka używa Lua 5.3.4, która jest dołączana jako biblioteka dynamiczna lua53.dll.

Dodatkowe funkcje

toansi

Encodes lua utf-8 string to ansi. It can be useful 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 behavior.

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'})

Moduły wewnętrzne


Przykłady

Some examples.


Zewnętrzne linki