System Module
Contents
rest()
system.rest(number msec)
Put the process to sleep for 'msec' milliseconds.
exec
string system.exec(string cmd)
Run the given command and return its output as a string.
shellExec
number system.shellExec(table execInfo)
Execute a system command or process when given a SHELLEXECUTEINFO structure [1]. Returns the process ID to the newly started process.
'execInfo' should be a table of key/value pairs of only the values which you want to set. For example:
local data = {lpVerb = 'open', lpFile = 'cmd', lpDirectory = 'C:\\'};
local procId = system.shellExec(data);
getClipboard()
string system.getClipboard()
Returns the system clipboard data as a string.
setClipboard()
boolean system.setClipboard(string data)
Sets the system's clipboard to 'data'. Returns true on success, false on failure.
getActiveCodePage()
number system.getActiveCodePage()
Returns the system's current code page as an integer.
getConsoleCodePage()
number system.getConsoleCodePage()
Returns the console's current code page as an integer.
setPriority()
system.setPriority(string priority)
Change the process's priority. 'priority' should be "high", "low", or "normal" (default)