As far as I know, it's not (directly) possible providing the click callback now works.
A workaround would be to have functions for each label, with each function calling 'matt' with specific values as required.
I.e, have a callback point to foo for one label and bar for another:
Code: Select all
function foo()
matt(1)
end
function bar()
matt(7)
end
I know it's messy, but it's the only way I can think of for the moment. Should save you a couple of hours, anyway
I think with buttons (instead of labels) you could assign a value to a global in the script portion. Sadly buttons need to be floating in a toolbar or docked, it seems.