Warning: Declaration of action_plugin_acl::register(Doku_Event_Handler $controller) should be compatible with DokuWiki_Action_Plugin::register($controller) in /var/www/iptv.gen12/public_html/dokuwiki/lib/plugins/acl/action.php on line 15

Warning: Declaration of action_plugin_description::register(&$controller) should be compatible with DokuWiki_Action_Plugin::register($controller) in /var/www/iptv.gen12/public_html/dokuwiki/lib/plugins/description/action.php on line 0

Warning: Declaration of action_plugin_googleanalytics::register(&$controller) should be compatible with DokuWiki_Action_Plugin::register($controller) in /var/www/iptv.gen12/public_html/dokuwiki/lib/plugins/googleanalytics/action.php on line 0

Warning: Declaration of action_plugin_keywords::register(&$controller) should be compatible with DokuWiki_Action_Plugin::register($controller) in /var/www/iptv.gen12/public_html/dokuwiki/lib/plugins/keywords/action.php on line 0

Warning: Declaration of action_plugin_popularity::register(&$controller) should be compatible with DokuWiki_Action_Plugin::register($controller) in /var/www/iptv.gen12/public_html/dokuwiki/lib/plugins/popularity/action.php on line 0

Warning: Declaration of action_plugin_safefnrecode::register(Doku_Event_Handler &$controller) should be compatible with DokuWiki_Action_Plugin::register($controller) in /var/www/iptv.gen12/public_html/dokuwiki/lib/plugins/safefnrecode/action.php on line 0

Warning: Declaration of action_plugin_translation::register(&$controller) should be compatible with DokuWiki_Action_Plugin::register($controller) in /var/www/iptv.gen12/public_html/dokuwiki/lib/plugins/translation/action.php on line 0

Warning: Declaration of action_plugin_authad::register(Doku_Event_Handler $controller) should be compatible with DokuWiki_Action_Plugin::register($controller) in /var/www/iptv.gen12/public_html/dokuwiki/lib/plugins/authad/action.php on line 0

Warning: Declaration of action_plugin_extension::register(Doku_Event_Handler $controller) should be compatible with DokuWiki_Action_Plugin::register($controller) in /var/www/iptv.gen12/public_html/dokuwiki/lib/plugins/extension/action.php on line 0

Warning: Declaration of action_plugin_styling::register(Doku_Event_Handler $controller) should be compatible with DokuWiki_Action_Plugin::register($controller) in /var/www/iptv.gen12/public_html/dokuwiki/lib/plugins/styling/action.php on line 0

Warning: Cannot modify header information - headers already sent by (output started at /var/www/iptv.gen12/public_html/dokuwiki/lib/plugins/acl/action.php:15) in /var/www/iptv.gen12/public_html/dokuwiki/inc/actions.php on line 38

Warning: Cannot modify header information - headers already sent by (output started at /var/www/iptv.gen12/public_html/dokuwiki/lib/plugins/acl/action.php:15) in /var/www/iptv.gen12/public_html/dokuwiki/lib/tpl/dokuwiki/main.php on line 12
Common [SimpleTV]

Инструменты сайта


mantis:simpletv:api:common

Common

DownloadFileInTmp(URL,FileName,ShowWindow)

Parameters
URL - string
FileName - string
ShowWindow - boolean
Return Value
Full path or nil 

error,NumberOfAdded,NumberOfRefreshed,NameAddedChannel = LoadPlayList(FileName,p,TypeMedia,SilentMode,Imulate)

Moved to PlayList

error,NumberOfAdded,NumberOfRefreshed,NameAddedChannel = LoadPlayList_UTF8(FileName,p,TypeMedia,SilentMode,Imulate)

Moved to PlayList

SavePlayList

Moved to PlayList

SaveAsUnicode

Parameters
Return Value

GetTmpName

Parameters
Return Value

GetVersion()

SimpleTV ver
SimpleTV v.0.4.7 r4 (556) or above
Description
Returns the current version of SimpleTV
Parameters
Return Value
a - SimpleTV version (type: number)
b - SimpleTV version from About window (type: ANSI string)
Sample
local a,b = m_simpleTV.Common.GetVersion()

string_toUTF8(str,code_page)

Parameters
    str - ANSI string
    code_page - optional, ANSI code page
Return Value
    UTF8 string

string_fromUTF8(str_UTF8,code_page)

Parameters
    str - UTF8 string
    code_page - optional, ANSI code page
Return Value
    ANSI string      

string_UnicodeToUTF8(str)

SimpleTV ver
SimpleTV v.0.4.7 r4 (556) or above
Description
Converting string from Unicode to UTF8 codepage
Parameters
str - input string (type: string (Unicode))
Return Value
strUTF8 - converted string (type: string (UTF8)) 
Sample
strUTF8 = m_simpleTV.Common.string_UnicodeToUTF8(str)

string_UTF8ToUnicode(str)

SimpleTV ver
SimpleTV v.0.4.7 r4 (556) or above
Description
Converting string from UTF8 to Unicode 
Parameters
str - input string (type: string (UTF8))
Return Value
str_UNICODE - converted string (type: string (Unicode)) 

string_IsUTF8(str)

Parameters
    str - string
Return Value
    true/false

Wait

Parameters

Delay - The number of milliseconds (type: number)

Return Value

Exit

Parameters
Return Value

Restart

Parameters
Return Value

string path = FolderPicker(string title,string start_path (opt))

Parameters
Return Value
string path or nil (on error, canceled)

string_UTF8 path = FolderPicker_UTF8(string_UTF8 title,string_UTF8 start_path (opt))

Description
UTF8 version FolderPicker

HWND = GetHWNDMainFrame()

Parameters
Return Value

SendMessageToMainFrame(message - number,WPARAM - number, LPARAM - number)

Parameters
Return Value

PostMessageToMainFrame(message - number,WPARAM - number, LPARAM - number)

Parameters
Return Value

SetForeground()

Parameters
Return Value

string_utf8 = GetExeName

Parameters
Return Value

processID = Execute(ApplicationName - string_utf8,CommandLine(opt) - string_utf8,flags(opt) - number),extflags(opt) - number)

Parameters
flags - Process Creation Flags  (https://msdn.microsoft.com/en-us/library/windows/desktop/ms684863(v=vs.85).aspx)
extflags - SimpleTV flags
    WAIT_PROCESS=1
Return Value

string_UTF8 = GetMainPath(type - number)

SimpleTV ver
SimpleTV v.0.4.8 b9 or above
Parameters
type - Type of path
     0 - logo absolute path 
     1 - work absolute path 
     2 - exe  absolute path 
     3 - logo relative path      
Return Value
path  
mantis/simpletv/api/common.txt · Последние изменения: 23/02/2017 12:24 — BM