MirLua
Plugin:MirLua/en
| MirLua | |
|---|---|
| Filename | MirLua.dll |
| Author | Miranda NG team |
| Download links | |
| Stable version: | 32-bit, 64-bit |
| Development version: | 32-bit, 64-bit |
Extends Miranda NG functionality with Lua scripts.
Examples
{{#subpages:Content:MirLua/Examples}}
Functions
| Function | Description | Extended description | Settings | Example |
|---|---|---|---|---|
| CreateHookableEvent | Creates a hookable event. | name
|
local hEvent = m.CreateHookableEvent('MyEvent')
|
|
| HookEvent | Sets a callback function ("trap") to react to event call. | Traps are called one by one in the order they were added to the sequence. Trap signature: |
name
hook
|
local hHook = m.HookEvent('MyEvent', function(w, l)
print('MyEvent is raised!')
end)
|
| UnhookEvent | Removes "trap" from event call sequence. | hEvent
|
m.UnhookEvent(hHook)
|
|
| NotifyEventHooks | Calls all "traps" of event call sequence one by one. | hEvent
wParam
|
m.NotifyEventHooks(hEvent)
|
External links