Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Thank You for your continued support and contributions!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  Bug? Or just incorrect usage. iRiver H120
« previous next »
  • Print
Pages: [1]

Author Topic: Bug? Or just incorrect usage. iRiver H120  (Read 1225 times)

Offline Clam

  • Member
  • *
  • Posts: 2
Bug? Or just incorrect usage. iRiver H120
« on: November 17, 2007, 10:24:52 AM »
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: [Select]
%P|pb.bmp|
%xl|d|cdc-mp3.bmp|140|61|
%xl|k|enc-vbr.bmp|140|67|
%ac%s%?it<%it|%fn>
%ac%t5%s%?ia<%ia|%?d2<%d2|(Unknown Artist)>>;%ac%t5%s%?id<%id|%?d1<%d1|(Unknown Album)>>
%pb||9|151|
%al %pc/%pt%ar%fbk    
%?fc<%xdb|%xdc|%xdd|%xde|%xdf|%xdg|%xdh|%xdi|%xdj|%xdJ>
%?fv<%xdk|%xdl>

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.
Logged

Offline NicolasP

  • Developer
  • Member
  • *
  • Posts: 195
Re: Bug? Or just incorrect usage. iRiver H120
« Reply #1 on: November 17, 2007, 04:27:25 PM »
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.
Logged

Offline Clam

  • Member
  • *
  • Posts: 2
Re: Bug? Or just incorrect usage. iRiver H120
« Reply #2 on: November 18, 2007, 03:24:08 AM »
Thanks for your help.
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  Bug? Or just incorrect usage. iRiver H120
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.063 seconds with 15 queries.