grandMA3 User Manual Publication

HostOS()

grandMA3 User Manual » Plugins » Lua Functions - Object-Free API » HostOS()
Version 2.0

Description

The HostOS Lua function returns a string with the type of operating system of the device where the plugin is executed (for instance, "Windows", "Linux", or "Mac").

Arguments

This function does not accept any arguments.

Return

  • String:
    The returned string is the operating system of the grandMA3 hardware or grandMA3 onPC computer.

Example

This example prints the operating system of the device in the Command Line History:

Lua
return function()
Printf("The HostOS is "..HostOS())
end