Content:MirLua/Examples/srmm

From Miranda NG
< Content:MirLua/Examples
Revision as of 00:51, 27 September 2017 by Unsane (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Send files button in SRMM's: local srmm = require('m_srmm') local icolib = require('m_icolib')

local moduleName = 'SendFiles' local buttonId = 1

local BBBF_ISIMBUTTON = 32 local BBBF_ISRSIDEBUTTON = 128

m.HookTemporaryEvent("SRMM/ButtonsBar/ModuleLoaded", function()

 srmm.AddButton{
   Module = moduleName,
   ButtonId = buttonId,
   Flags = BBBF_ISIMBUTTON


Open received files folder button in SRMM's: local srmm = require('m_srmm') local icolib = require('m_icolib')

local moduleName = 'MyReceivedFiles' local buttonId = 1

local BBBF_ISIMBUTTON = 32 local BBBF_ISRSIDEBUTTON = 128

m.HookTemporaryEvent("SRMM/ButtonsBar/ModuleLoaded", function()

 srmm.AddButton{
   Module = moduleName,
   ButtonId = buttonId,
   Flags = BBBF_ISIMBUTTON