[Carradio\Blaupunkt\Lubeck\Lubeck CC22]

Size(280,180); // width and height

Form {

    HexDigit(Code,"Code",70,15,100,4);
    ComboBox(CodeRequest,"Code request",32,45,100,"On","Off");
    Label(lb1,"Code calculator for carradio Blaupunkt Lubeck CC22",10,85);
}

OnShow {

    Code = @0x68 << 8 | @0x69;
    Var0 = 100;
    if(@0x6a = 0x2C) {var0 = 0;}    
    if(@0x6a = 0x29) {var0 = 1;}
    CodeRequest = var0; 
}

OnApply {

    @0x68 = Code >> 8 & 255;
    @0x69 = Code & 255;
    if(CodeRequest = 0) { @0x6a = 0x2C; }
    if(CodeRequest = 1) { @0x6a = 0x29; }
}
