SimpleTV v.0.4.8 b9 or above
Adds a item in the "Extra" menu and assign hotkeys to run the script
t.utf8 (true) - string coding t.codepage (0) - code page of non utf8 text t.name - Name of item in the "Extra" menu if name=='-' then add separator t.luastring - lua file name or script t.lua_as_scr (false) - if true then t.luastring is script, overwise t.luastring is file name of lua script t.submenu ('') - string, name of submenu t.key (0) - letter hotkey (type: byte (ANSI char)) t.ctrlkey (0) - modifier keys (type: number) (available value: 0 - not modifier keys, 1 - CTRL, 2 - SHIFT, 3 - CTRL + SHIFT ) t.location (0) - 0 - in main menu,1 - in playlist menu, -1 all t.image(t) - string, image file name
id - numeric identifier of the menu item (type: number)
SimpleTV v.0.4.7 r3 (550) or above
Delete a item from the "Extra" menu
id - numeric identifier of the menu item (type: number)
m_simpleTV.Interface.RemoveExtMenu(id)
SimpleTV v.0.4.7 r4 (556) or above
Getting the language of OS and SimpleTV
a - SimpleTV language (ru, en, etc) (type: ANSI string)
b - OS language (type: ANSI string)
local a,b = m_simpleTV.Interface.GetLanguage()
Show MessageBox
Messsage - message string Caption - window caption Type - type of message box Object - parent window (object, nil or none - current foreground window, 0 - main window), from v 0.4.8 b8
MessageBox return value or nil on error
get system color
RGB value of the given element.
m_simpleTV.Interface.SetRatioMainFrame(9/16)