Hi all

Hi all,

Having a problem with one of my scripts:

var f=LL.getCurrentDesktop().getItemByName(‘CCMF’);

var p=f.getProperties();

var label = “2”;

f.setLabel(label);

p.edit().setInteger(“i.alpha”,250).commit();

p.edit().setInteger(“s.labelFontColor”,”00xff2196F3″).commit();

Basically it works up till the last line, which is meant to change the color of the shortcut text, which it does in a way, it makes it transparent instead of the color I want it.

So my question is how do you convert a hex color code into the format required for it to work?

I know it’s probably something simple and I think I’ve seen the answer here before but can’t find it.

Thanks in advance.

]]>

2 Commentsto Hi all

  1. Anonymous says:

    < ![CDATA[

    Use 0xff2196F3 instead of “00xff2196F3”


    (no quote, no double 0 at the beginning)

    ]]>

  2. Anonymous says:

    < ![CDATA[

    Thanks Pierre, knew it was something simple like that.

    ]]>

Leave a Reply

Your email address will not be published. Required fields are marked *