Thanks for the swift reply. I'm still having issues with this, as in QC 4 I can do this:
function (__string outputName) main (__number ipnumber) to set the name of the inputs and outputs, but in QC 2 I cannot figure out the correct syntax for this and there really isn't any documentation that I have been able to find as most of what is out there is for QC 4 and the new javascript patch. All I have been able to see is that I can hit [+] or [-] to add inputs or outputs. The outputs[0] value works fine in my patch, but I can't get the value of the inputs[1] to register in my switch. I know the coding for my switch statement is ok since if I just arbitrarily create a var and assign a value to that and use it in the switch instead of inputs[1] the switch returns a value to outputs[0]. By the way I have the host info patch, outputting the IP address into a string scanner to grab just the second set of numbers in the IP address, since they are unique to each location that I am working with, and then I run the output of that to the javascript patch where I want to use that unique number in the switch statement to display the correct location name. This way I can have the same screen saver on all of the computers, and it should be smart enough to display the correct location name and hours by determining the location from the unique segment of the ip address. thanks Hello Jeff, you setup the inputs and outputs-count in the old JavaScript-Patch inspector above the JS code. the inputs and outputs are referred as you did in your example. My ideas on your example code: 1) I think if "inputs[0]" is "2" the "outputs[1] and outputs[3] are undefined, you have to set them to be sure what their values are. 2) Don't forget: the outputs-index starts at "0". so also use the outputs[0]! 3) your code does, what the "Demultiplexer" patch is doing (don't now if this was in QC2 already, thought) Best, Achim Breidenbach Boinx Software Ltd. _______________________________________________ Do not post admin requests to the list. They will be ignored. Quartzcomposer-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/quartzcomposer-dev/archive%40mail-archive.com This email sent to [email protected]

