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:

Rockbox Ports are now being developed for various digital audio players!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  Difficulty putting together several conditions.
« previous next »
  • Print
Pages: [1]

Author Topic: Difficulty putting together several conditions.  (Read 1046 times)

Offline KiwiCam

  • Artist
  • Member
  • *
  • Posts: 92
Difficulty putting together several conditions.
« on: October 12, 2011, 06:09:48 PM »
I'd like to do the following, but can't figure out how.

If volume is changing then display volume progress bar:

Code: [Select]
%Vl(g,53,32,65,8,6)


%?mv(1.0)<%pv(7,3,41,5,backdrop,J,image,I)

If no Volume, but Sleep is active:

Code: [Select]
%?if(%bs,>,0)<%t(2)%acSLEEP;%t(2)%ac%bs>

Otherwise show Icons for Shuffle/Repeat Mode:

Code: [Select]
%?mm<%?ps<%xd(Da)>|%?ps<%xd(Db)|%xd(Dc)>|%xd(Dd)|%?ps<%xd(De)|%xd(Dc)>|%xd(Df)>>

OR Switch between the Second two if Volume isn't changing.

Can someone please advise how to achieve this? I can get Volume and Sleep to work, or Volume and Shuffle/Repeat, but not them both. I did actually have this working at one stage, but I lost my original work and I'm stumped   :'(

Logged

Offline [Saint]

  • Rockbox Expert
  • Member
  • *
  • Posts: 1662
  • Hayden Pearce
    • Google+
Re: Difficulty putting together several conditions.
« Reply #1 on: October 13, 2011, 07:52:15 AM »
This should do the trick...

%?mv(1.0)<%pv(7,3,41,5,backdrop,J,image,I)|%?if(%bs,>,0)<%t(2)%acSLEEP;%t(2)%ac%bs|%?mm<%?ps<%xd(Da)>|%?ps<%xd(Db)|%xd(Dc)>|%xd(Dd)|%?ps<%xd(De)|%xd(Dc)>|%xd(Df)>>>

Logged
Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.

Offline KiwiCam

  • Artist
  • Member
  • *
  • Posts: 92
Re: Difficulty putting together several conditions.
« Reply #2 on: October 13, 2011, 06:52:55 PM »
Thanks Saint. Greatly appreciated.
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  Difficulty putting together several conditions.
 

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

Page created in 0.065 seconds with 15 queries.