Farbwert eines VariablenProfils im laufenden Betrieb Ändern.

Huhu …

Sitze hier vor einem kleinen Problem.

Will ein Farbwert ändern. Das echo gibt mir z.B. 0xFF5628 sauber raus.
Das heist der String past.

Bekomme jedoch immer nen Fehler.Siehe Bild ??

	case (rgbfader):
         		SetValue (58299, GetValueFormatted(rgbfader)); // Farbe für Autmatik setzen
					$profilFarbeAuto = '0x'.GetValueFormatted(rgbfader);
					echo $profilFarbeAuto;
					IPS_SetVariableProfileAssociation(".ChromoProgramm", 100, "Auto","",$profilFarbeAuto);
         	break;

Gruß Nick

Evtl.

 
(int)$profilFarbeAuto

Danke für den Tip.

Hat im ersten Moment nicht zum Erflog geführt bin aber drauf gekommen.


// es geht zum beispiel
IPS_SetVariableProfileAssociation(".ChromoProgramm", 100, "Auto","",hexdec('FF000'));
// oder mit einer Variablen
$RGBHEX = 'FF000';
IPS_SetVariableProfileAssociation(".ChromoProgramm", 100, "Auto","",hexdec($RGBHEX));

Jetzt verstehe ich aber nicht warum wen ich den Wert 0xFF0000 genau so eintage funktioniert die Funktion. Bei einem zusammengesetzten Strig der genau das gleiche ergibt nicht.

Oder wandelt die IPS Funktion den Wert nach 0x in decimal ??

Gruß Nick