sos

sos is a library that contains functions pertaining to SkyOS itself

screenshot()Screenshot the screen, and save it to /screenshots/hhmmss-ddmmyyyy.skimg
desktopFunctions to interact with the desktop file.
screenshot()Source

Screenshot the screen, and save it to /screenshots/hhmmss-ddmmyyyy.skimg

desktopSource

Functions to interact with the desktop file.

nextAvailable()Find next available slot
insertApp(...)Insert an app into the desktop.
genDesktop()Generate a blank desktop file.
nextAvailable()Source

Find next available slot

Returns

  1. number Screen position.
  2. number Y position.
  3. number X position.
insertApp(...)Source

Insert an app into the desktop.

Parameters

  1. desktop table Desktop to add to.
  2. name string Name of the app.
  3. image string Path to the app icon.
  4. program string Path to the program to open.

Or

  1. desktop table Desktop to add to.
  2. opts { name = string, image = string, program = string }
    • name Name of the app.
    • image Path to the app icon.
    • program Path to the program to open.
genDesktop()Source

Generate a blank desktop file.

Returns

  1. table Desktop table according to desktop article.