System

System stuff.

getEditorTime()

Get the time since the PlayScript started.

Return
float

copyTextToClipboard(text)

Copy some text to the system clipboard.

Arguments
text:

getTextFromClipboard()

Get text currently in the system clipboard.

Return
string

setPreference(key, value)

Set a preference that will be stored on disk to persist across executions of your PlayScript.

Arguments
key: string
value: number

getPreference(key)

Get a preference.

Arguments
key: string

Return
bool, string or number

getGlobalPreference(key)

Get a global preference.

Arguments
key: string

Return
bool, string or number

setOnPreferencesChanged(callback)

Invoke a callback whenever a preference is changed.

Arguments
callback: function()