Difference between revisions of "System Module"
m (Protected "System Module" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))) |
m |
||
Line 6: | Line 6: | ||
== exec() == | == exec() == | ||
− | '''string system. | + | '''string system.exec(string cmd)''' |
Run the given command and return its output as a string. | Run the given command and return its output as a string. | ||
Line 18: | Line 18: | ||
== setClipboard() == | == setClipboard() == | ||
− | '''boolean system. | + | '''boolean system.setClipboard(string data)''' |
Sets the system's clipboard to 'data'. | Sets the system's clipboard to 'data'. |
Revision as of 15:19, 6 July 2014
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.
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)
getConsoleAttributes()
number winWidth, number winHeight, number buffWidth, number buffHeight, number cursorX, number cursorY system.getConsoleAttributes()
Returns a set of console attributes. Values are in characters, not pixels!
setConsoleAttributes()
system.setConsoleAttributes(number windowWidth, number windowHeight, number bufferWidth, number bufferHeight)
Modify the console's attributes. Values should be in characters, not pixels.