Support and General Use > Theming and Appearance Customization

Bug? Or just incorrect usage. iRiver H120

(1/1)

Clam:
Hi,
I'm having problems with scripting the WPS on the iRiver simulator.

When I use the Current Time tag, any conditional graphic (let's say for example, Codec) on the same line, will only appear for a millisecond, then vanish as the Current Time continiously updates.

However, if I use static text, the graphic on the same line will stay.

Example:





Code used to produce this:

--- Code: ---%P|pb.bmp|
%xl|d|cdc-mp3.bmp|140|61|
%xl|k|enc-vbr.bmp|140|67|
%ac%s%?it
%ac%t5%s%?ia;%ac%t5%s%?id
%pb||9|151|
%al %pc/%pt%ar%fbk    
%?fc
%?fv
--- End code ---

It just seems to me that the Current Time update isn't repainting the graphic. So is this a bug? Or just some silly mistake I've made.

Thanks for your time.

NicolasP:
It's a bit of a bug...
The problem you are seeing is that when a line contains at least one dynamic tag (here it's the elapsed time), it will be entirely erased and rewritten on every WPS update (several times per second). Static tags, however, are only updated once in a while. The codec type is one of these static tags, which means the line containing that conditional will be read much less often than the line with the elapsed time tag.

The easiest workaround this problem is to put the codec conditional tag on the same line. That way it'll be updated as often as the rest of the line, and the picture won't disappear anymore.

Clam:
Thanks for your help.

Navigation

[0] Message Index

Go to full version