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  
Зашли как: Anonymous (Anonymous)
mantis/simpletv/api/common.txt · Последние изменения: 23/02/2017 12:24 — BM
 
За исключением случаев, когда указано иное, содержимое этой вики предоставляется на условиях следующей лицензии: CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki