Jump to content
C4 Forums | Control4

Lua script. Some queries don´t work. Why ?


Recommended Posts

It is solved. 
I had the mute query inside the set_input query. 
My script works with some queries, and some don´t - i don´t know why.
I am getting this lua output :
Received From Proxy strCommand: MUTE_ON
Received From Proxy ID: 5001
Received From Proxy tParams: OUTPUT : 4001

My function : 
function ReceivedFromProxy(idBinding, strCommand, tParams)
       print("Received From Proxy strCommand: "..strCommand)
       print("Received From Proxy ID: "..idBinding)
     if tParams ~= nil then
       for key,value in pairs(tParams) do print("Received From Proxy tParams: "..key.." : "..value) end
    if strCommand == "SET_INPUT" then
      if tParams.INPUT == "3000" and tParams.OUTPUT == "7000" then
    if strCommand == "MUTE_ON" then
The part with "SET_INPUT" works, the part with "MUTE_ON" do not.
And i don´t know why.
Edited by KAL
Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

By using this site, you agree to our Terms of Use.