SelectedTimer()

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

説明

SelectedTimer 関数は、選択されたタイマー・オブジェクトヘのハンドルを返します。詳しくは タイマー を参照してください。

引数

この関数は、引数を受け取りません。

戻り値

  • handle:
    選択されたタイマー・オブジェクトヘハンドルを返します。

この例では、選択したタイマーに関するすべての情報を、Dump() 関数を用いて Command Line History に出力します。

Lua
return function ()
-- The following prints the dump for the selected timer object
local myTimer = SelectedTimer()
if myTimer ~= nil then
Printf("=============== START OF DUMP ===============")
myTimer:Dump()
Printf("================ END OF DUMP ================")
end
end