CN für Windows

Da Clevernodes per Definition keine grafische Oberfläche haben, ist die CN für Windows ein Programm für die Kommandozeile.

Die CN für Windows ist der Lua Standalone Version (https://www.lua.org/pil/1.4.html) sehr ähnlich, sie ist nur um die Nogs Bibliotheken erweitert.

 

 

 

 

Fest eingebaute Bibliotheken

sys.*

  • norm()
  • sleep()
  • introduce()
  • print()
  • restart()
  • stop()
  • setStopOnError()
  • isTicked()
  • description()
  • info()
  • show()
  • getTickRate()
  • reboot()
  • fileSystem.*
  • base64.*
  • messagePack.*
  • tasking.*
  • bytes.*
  • serial.*
  • sys.tasking.*
  • add()
  • divide()
  • execute()
  • introduce()
  • list.*

sys.bytes.*

  • new()

setEndianness
clear
setString Set or append a string
setBASE64 Set or append a decoded BASE64 string
setHexString Set or append a decoded hex string
setUInt8
setInt8
setUInt16
setInt16
setUInt32
setInt32
getString Get a string from the bytes
getBASE64 Get a string from the bytes and encode the string in BASE64
getUInt8
getInt8
getUInt16
getInt16
getUInt32
getInt32
toString Get the complete bytes as string
toBASE64 Get the complete bytes as encoded BASE64 string
toHexString Get the complete bytes as encoded hex string

  • introduce()

sys.base64.*

  • decode()
  • introduce()
  • encode()

sys.serial.*

  • send()
  • open()
  • recv()
  • close()
  • introduce()

sys.messagePack

  • unpack()
  • introduce()
  • pack()

sys.fileSystem.*

  • getCurrentDirectory()
  • introduce()
  • directory()
  • setCurrentDirectory()

socket

Aufruf mit require ’socket‘. Die Beschreibung ist hier zu finden: http://w3.impa.br/~diego/software/luasocket

json

Aufruf mit require ‚json‘ oder require ‚json.save‘: Die Beschreibung ist hier zu finden: https://github.com/mpx/lua-cjson

Als DLL realisierte Bibliotheken

console.dll

Aufruf mit require ‚console‘

  • getSize
  • getWindow
  • gotoXY
  • color
  • clear
  • output

Beispiel:

[code language="text"]

local console = require 'console'

console.gotoXY(10, 20)

console.color('red')

print('Hallo!')

[/code]

messageBox.dll

Aufruf mit require ‚messageBox‘

  • show

Download

20170203 CN for Windows

No votes yet.
Please wait...