local utf8str = m_simpleTV.Common.multiByteToUTF8(str) --will be used system default codepage local utf8str = m_simpleTV.Common.multiByteToUTF8(str,1251) --will be uses codepage, it's same as 'Windows-1251' codec name local utf8str = m_simpleTV.Common.multiByteToUTF8(str,'Windows-1251') --will be used full codec name local utf8str = m_simpleTV.Common.multiByteToUTF8(str,'IBM 850') --will be used full codec name
ret == 1 if sleep failed (interruption requested or app exit)
userInput == 1 if was key - key code or 0 action - action number or -1
0.5 b10 - 820 0.5 b11 - 830 0.5 b12 - 840 0.5 b12.2 - 850 0.5 b12.4 - 860 0.5 b12.5 - 870 0.5 b12.7.6 - 880
type - Type of path 0 - logo absolute path 1 - work absolute path 2 - exe absolute path 3 - logo relative path
it's equivalent CreateProcessW
flags - dwCreationFlags
extFlags bitwise WAIT_PROCESS = 1
from version 0.5.0 b12.7 return hash of inData or nil on error algorithm - algorithm of hash, optional, by default 'Md5' possible algorithms: 'Md4', 'Md5', 'Sha1', 'Sha224', 'Sha256', 'Sha384', 'Sha512', 'Keccak_224', 'Keccak_256', 'Keccak_384', 'Keccak_512', 'RealSha3_224', 'RealSha3_256', 'RealSha3_384', 'RealSha3_512', 'Sha3_224', 'Sha3_256', 'Sha3_384', 'Sha3_512' encodeInHex - encode result in HEX, boolean, optional, by default true example: local hash = m_simpleTV.Common.CryptographicHash("m_simpleTV","Sha512",true)
from version 0.5.0 b12.7.6 it's interface to the QDir::entryInfoList - https://doc.qt.io/qt-5/qdir.html path - path to directiory nameFilters - name filters, separated by ';', optional by default empty filters - optional, by default "AllEntries|NoDotAndDotDot" sort - optional, by default "Name|IgnoreCase|DirsFirst" return array of info tables or empty table on error local t = DirectoryEntryList('C:/') t[1].isDir - boolean t[1].size - number t[1].absoluteFilePath - utf8String t[1].fileName - utf8String t[1].completeBaseName - utf8String t[1].suffix - utf8String example --list files with wildcard '*.gif' or '*.jpg', ordered by time local t = m_simpleTV.Common.DirectoryEntryList('C:/','*.gif;*.jpg','Files','Time') --list all dirs, ordered by name local t = m_simpleTV.Common.DirectoryEntryList('C:/',nil,'Dirs','Name|IgnoreCase')