Is there a way to assign a new icon to a normal X-10 device instead of a lightbulb?
Announcement
Collapse
No announcement yet.
Change Device Icons
Collapse
X
-
MeSteveTags: None
-
MeSteve
Originally posted by RuppSure but it depends on how you are controlling this light. If you control it using an event then in that event you can add to the script speech tab, script to run field something like:
&hs.SetDeviceString "F17", " " & " Desired Text Here"
Comment
-
Sorry MeSteve,
The text was rendered as a dead image is should show
PHP Code:&hs.SetDeviceString "F17", "<font color='#E4FC42'><img src='blank.gif'></font> " & " Desired Text Here"
Last edited by Rupp; November 15, 2004, 08:30 AM.
Comment
-
MeSteve
What would I put inside the brackets? Sorry all the Q's, but this is my first venture into the writting code way of thinking.
Comment
-
MeSteve
OK, I've been at the computer too long, last time I looked all your last reply said was
"Sorry MeSteve,
The text was rendered as a dead image is should show
[code]"
but of course now it shows up
Comment
-
MeSteve
Got it to change the status text, but no luck on the icon. Does it have to be a .gif? Do I need the whole file path or just the path from the hs folder?
Comment
-
MeSteve
-
MeSteve
That makes all the diference in the world!!! Thanks, now how do I get it back to normal on the GUI
Comment
-
MeSteve
OK, beating the dead horse one more time. I can't get the background of my .gif to apear transparent. It is transparent in the preview window down the left side of the windows folder view. Also, I tried adjusting the background color of the .tablecellcustom on the style sheet to match the bg color of the .gif but no luck.
Comment
-
MeSteve - Your icons are probally not transparent but have a white background, you will have to create your icons (gif's) with a transparent background, I use Paint Shop Pro 7, below are instructions.
1. Open the gif in PSP
2. Zoom the image a bit so you can see what you are doing
3. Go to colours, increase colour depth, choose 16 million colours
4. Select the background within the image, the easiest way to do this is using the 'magic wand' tool on the left hand side, then select an area of the background, if this does not select the whole background hold the 'shift' key and select the bits missed.
5. Select the Flood Fill tool (left hand side (looks like a bucket)), choose a colour from the colour palette (top right), I always choose a bright green.
6. Click on the background you now have selected and this should flood fill with the colour you choose.
7. Go to colours, Set Palette Transparency, I only ever click 'ok' on the pop up window and do not change the defaults.
8. On the next pop up choose 'Set the transparency value to palette entry' bottom radio button.
9. Move your mouse over your image and click somewhere on the background colour (green in my case), then click OK.
10. Save the image as a .gif.
You now have an icon/image with a transparent background. You may have to touch up some of the edges of the image with the paint brush and your choosen background colour as the 'wand' tool may not select all of the background.
If you want to see the effects of your transparency without having to load in your web page, within PSP go to colour, view palette transparency, I use this mode to touch up the edges as I can see the effects straight away, if I don't like what I have done then it's just a quick ctrl Z to undo.
If you are having troubles post the images here, and I'll see what I can do.
My appologies if I'm teaching my granny to suck eggs.
LanceLance
Comment
Comment