I have two scripts running and I need to get one script interacting with another.
What I have tried, but it doesn't seem to work, is to simply get one script to change the menu settings of the other script. But nothing seems to happen.
Here is the code in one script, with Focus Bar being the ML menu created by the other script:
if menu.get("Focus Bar","Focus Bar") == "ON" then
menu.set("Focus Bar","Focus Bar","OFF")
elseif menu.get("Focus Bar","Focus Bar") == "OFF" then
menu.set("Focus Bar","Focus Bar","ON")
end
Is the problem that Lua can't change a script created ML Menu?
Cheers
Garry