Box with buttons and control commands

I’m trying to make a webcam control like the added picture, its from the demo website. I hope someone can help me with the first steps because I cannot find the way to make a box like this with buttons I can configure myself.

I don’t want to do this with al html page because this page is always accessible, in the IP-Symcon software I can switch this functionality off when needed.

Can someone help me with the first steps, I cannot find the way in this forum or manuals.

Thanks.

Albert

Sorry, forgot to add the picture ……….

WebCam control.jpg

Intergervariable anlegen, Assoziationen festlegen, Variable einen Script zuordnen und zum schalten als minimal Anforderung, dieser Code.

if($_IPS['SENDER'] == "WebFront")
{
    SetValue($_IPS['VARIABLE'], $_IPS['VALUE']);
}

fertig.

Als Alternative wäre dieser Code auch zu gebrauchen. :wink:

switch($_IPS['SENDER'])
{
    case "WebFront":
        SetValue($_IPS['VARIABLE'], $_IPS['VALUE']);
    switch($_IPS['VALUE'])
    {
       case 0: // Wert Assoziation
          // Befehl ausführen
       break;
       case 1:
          // Befehl ausführen
       break;
       case 2:
            // Befehl ausführen
        break;
        // usw.........
    }
    break;
}

Thanks, that’s what I was looking for.

One thing: only the selected button is now light grey and not the other ones. In the example all the buttons are light grey. How can I set this?

Albert

Es ist immer nur der aktive Button hervorgehoben. Alle anderen sind revers hinterlegt. So ist es auch im Beispiel.

Du kannst allerdings auch deine eigene Farbe auswählen!

Yes, your right, it is indeed light and dark grey …………sorry ………

After a few hour trying to get this working my mind is at it’s end :smiley: