I’d like to grab the status of various condition lines from megatrigs to move a cursor of which I’m calling “Focus” around on the macro page (based on a modified ListRow template).
Does the Megatriginfo parameter send any kind of usable information? If so, what does it carry and how do I extract it? I’d love to get a simple booleen corresponding to the status indicator light.
Meanwhile, I have kludged a method that feeds off the MegatrigCondChangeCount parameter. I am wondering how high this parameter counts before it eventually resets, or rather, what is a good value to plug in as the ‘max’? I must enter something or it stops at 100.
Essentially the last counter to move sets the focus like so.
--[[ Keyswitch Focus --> This gets updated using the code below. Macro elements check it to know what to display...stacks can be hidden/shown. Etc. ]]--
defineParameter("Focus", nil, 1)
Focus = 1
--[[ These connect to key-switch condition lines of MegatrigCondChange Count parameters ]]--
defineParameter("ks1", nil, 0, 0, 9999999999, function() ksa() end)
defineParameter("ks2", nil, 0, 0, 9999999999, function() ksb() end)
defineParameter("ks3", nil, 0, 0, 9999999999, function() ksc() end)
defineParameter("ks4", nil, 0, 0, 9999999999, function() ksd() end)
defineParameter("ks5", nil, 0, 0, 9999999999, function() kse() end)
function ksa()
if Focus ~= 1 then
Focus = 1
end
end
function ksb()
if Focus ~=2 then
Focus = 2
end
end
function ksc()
if Focus ~= 3 then
Focus = 3
end
end
function ksd()
if Focus ~=4 then
Focus = 4
end
end
function kse()
if Focus ~= 5 then
Focus = 5
end
end
How high does that count before it resets?