GetScreenContent(handle)

grandMA3 ユーザマニュアル » プラグイン » Lua 関数 - Object-Free API » GetScreenContent(handle)
Version 2.2

説明

The GetScreenContent Lua function returns a handle to the screen content based on a provided handle to a screen configuration.

引数

  • handle:
    This must be a handle to a screen configuration.

戻り値

  • handle:
    The returned handle to the screen content.

This example prints the data connected to the screen content handle. It uses the CurrentScreenConfig() and Dump() functions:

Lua
return function()
-- Create a handle for the current screen configuration.
local myCurrentScreenConfig = CurrentScreenConfig()
-- Create a handle for the screen content based on the screen configuration.
local myScreenContent = GetScreenContent(myCurrentScreenConfig)
-- Print the Dump of the handle.
Printf("=============== START OF DUMP ===============")
myScreenContent:Dump()
Printf("================ END OF DUMP ================")
end