Content:MirLua/Examples/srmm

From Miranda NG
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