insert into macroheader values ('SLIDER_Y_CC','Vertical Lighting Slider',0,0,1); insert into macrodetail values ('SLIDER_Y_CC',1,15,'[LOCAL3]',NULL,'ph_getccobjheight(ph_getvar_s(2,1),"G" + ph_getvar_s(2,2))',0,''); insert into macrodetail values ('SLIDER_Y_CC',2,15,'[LOCAL1]',NULL,'ph_getccobjheight(ph_getvar_s(2,1),ph_getvar_s(2,2)) - ph_getvar_n(1,3)',0,''); insert into macrodetail values ('SLIDER_Y_CC',3,15,'[LOCAL2]',NULL,'ph_getvar_n(2,4) - ph_getccobjy(ph_getvar_s(2,1),ph_getvar_s(2,2)) - (ph_getvar_n(1,3) / 2)',0,''); insert into macrodetail values ('SLIDER_Y_CC',4,15,'[LOCAL4]',NULL,'case(ph_getvar_n(1,2) when is < 0 then 0 when is > ph_getvar_n(1,1) then ph_getvar_n(1,1) else ph_getvar_n(1,2))',0,''); insert into macrodetail values ('SLIDER_Y_CC',5,15,'[LOCAL5]',NULL,'case(ph_getvar_s(2,2) when "ISL_1" then "FAMILYRM" when "ISL_2" then "KITCHEN" when "ISL_3" then "KITCHENFANLIGHT" when "ISL_4" then "LIVINGRM1" when "ISL_5" then "LIVINGRM2")',0,''); insert into macrodetail values ('SLIDER_Y_CC',6,15,'[LOCAL6]',NULL,'case(left(ph_getvar_s(2,2),1) when "I" then 255 when "X" then 100 else 100)',0,''); insert into macrodetail values ('SLIDER_Y_CC',7,38,'',0,'case(left(ph_getvar_s(2,2),1) when "I" then ph_insteon(ph_getvar_s(1,5),ion,255 - (ph_getvar_n(1,4) / ph_getvar_n(1,1) * 255)) when "X" then ph_x10btn(ph_getvar_s(1,5),100,100 - (ph_getvar_n(1,4) / ph_getvar_n(1,1) * 100)) else 0)',0,'');