GetScreenContent(handle)

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

説明

GetScreenContent 関数は、画面構成への指定ハンドルに基づいて、画面内容へのハンドルを返します。

引数

  • handle:
    画面構成へのハンドルです。

戻り値

  • handle:
    画面内容へのハンドルを返します。

画面内容のハンドルに接続されたデータを、CurrentScreenConfig() および Dump() 関数を用いて出力します。

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