grdmagick and lscolor Thread last updated on 2003-11-27 03:51:24

Posted by member 21066 on 2003-05-28 05:31:35

I've been trying to use both to recolor some bitmaps to my system colors. But it just wont work.

This is what I tried:

*grdmagick popup2 replace 0x00FF00 0x$3dLight$

and I tried:
----------------------
*grdmagick popup2 replace 0x00FF00 $3dLight$

and even tried:
----------------------
OldCol "0x00FF00"
NewCol "0x$3dLight$"

*grdmagick popup2 replace $OldCol$ $NewCol$

also tried:
----------------------
*grdmagick popup2 replace 0x00FF00 "0x$3dLight$"

Just wont work... any ideas?

Posted by member 910 on 2003-05-31 14:49:04 link

does this give you problems with other variables that lscolor loads or is it only this particular variable? does it work if you hard code the color value into the step instead of the variable? does it work if you change the system color that 3dLight points to? are you loading lscolor well before grdmagick? (lscolor needs a short bit of time to register all the color variables with ls) do you have v1.4 of lscolor? have you tried an [!Alert "$3dLight$" "3dLight"] bang command to make sure that the variable is valid?

Posted by member 21066 on 2003-06-01 05:51:49 link

Thanks for your answer, pika.
Quote:
are you loading lscolor well before grdmagick? (lscolor needs a short bit of time to register all the color variables with ls)


That was the clue I was missing. I was loading lscolor last. When I changed to loading it first the problems went away.

I should have tried changing the loading order first. Especially since I know that the loading order can make/solve some problems in LS. That'll teach me.

Posted by member 910 on 2003-06-01 15:57:11 link

we all do that at some point. when you try to use an evar before actually defining it, you can really feel silly ^_^

Posted by member 81301 on 2003-11-27 03:51:24 link

I'm having the same problem, I've got lscolor loading first and then all my non-visual modules, then grdmagick and then the modules I want to change the colours for.

*NetLoadModule lscolor-1.5
*NetLoadModule mzscript-0.9-beta_12
*NetLoadModule desktop2-2.0
*NetLoadModule grdmagick-1.3.1
*NetLoadModule popup2-2.1.4
*NetLoadModule vtray-1.05
*NetLoadModule taskbar3-0.306_alpha-3
*NetLoadModule lsxcommand-1.8.5
*NetLoadModule shortcut2-2.0.1
*NetLoadModule label-1.99

Then I'm trying to use it like this:
*grdMagick label-1.99 replace 0xFF7FFF 0x000000