-
Notifications
You must be signed in to change notification settings - Fork 0
System API
Restarts the computer.
Shuts the computer down.
Returns: boolean Success
Pushes an event into the event queue. Returns a boolean value, with the value being true if the event was successfully put into the queue. If the value was false, that means the queue has too many events in it as it is.
Returns: number TimerID
The value given for time is recognized as seconds. When using this function, an event will be queued once the timer has gone off, with the second argument of the event being the TimerID given to you.
This cancels a timer, preventing it from queuing an event before it has gone off.
Returns: boolean Success
Plays a tone of the specified frequency. If amplitude or duration are not given, they are assumed to 1. The system can only play one tone at a time, making this mostly useful for notifications and debugging.
Returns: string Address
The address (mostly) follows the format of a UUID; xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.
Returns: number MemoryKB
Returns the amount of memory being used by the computer in kilobytes.
Returns: number MemoryKB
Returns the amount of memory that is available to be used in kilobytes.
Returns: number MemoryKB
Returns the amount of memory that the computer has in total in kilobytes.