Ok, das habe ich so weit hin. Aber irgendwie klappt das noch nicht, dass die richtigen Werte gesendet werden.Henke hat geschrieben: ↑29.12.2022, 17:38Klar, wenn du mit fixer Länge schneidest.Code: Alles auswählen
var R = RGB.StrValueByIndex( ",", 0); var G = RGB.StrValueByIndex( ",", 1); var B = RGB.StrValueByIndex( ",", 2);
Kann sich mal jemand das Skript anschauen?
Code: Alles auswählen
string wert = dom.GetObject("CUxD.CUX2801002:1.RGBW").Value();
string RGB = wert.StrValueByIndex(")", 0).StrValueByIndex("(", 1);
string G = RGB.StrValueByIndex(",", 0).StrValueByIndex(",", 0);
string B = RGB.StrValueByIndex(",", 1).StrValueByIndex(",", 0);
string R = RGB.StrValueByIndex(",", 2).StrValueByIndex(",", 0);
string url="http://192.168.21.239/win&CL=" # R # G # B;
!string url="http://192.168.21.239/win&G=" # G;
!string url="http://192.168.21.239/win&B=" # B;
dom.GetObject("CUxD.CUX2801001:1.CMD_EXEC").State( "wget -q -O - '"#url#"'");
WriteLine("Source-Value: "# RGB);
WriteLine("Source-Value R: "# R);
WriteLine("Source-Value G: "# G);
WriteLine("Source-Value B: "# B);
dom.GetObject("SRGB").State(wert);