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
| | |-+  is there a WPS tag to capture the next track key press
« previous next »
  • Print
Pages: [1]

Author Topic: is there a WPS tag to capture the next track key press  (Read 2394 times)

Offline jimbilly

  • Member
  • *
  • Posts: 44
is there a WPS tag to capture the next track key press
« on: September 20, 2010, 09:37:38 AM »
is there a WPS tag for 'any key' or to capture the next track key press in particular?   I'd like to be able to switch my viewport based on hitting the next track button.  is this possible?

i'm using a volume change conditional tag to display track details and next track info vs. album art, but its a little annoying when skipping through shuffled tracks and not having these details shown (without jiggling the volume once again).     looking for,  album art most of the time,  jiggle volume for extra details (i've got this much working) and also want temp details while skipping as well.   kinda like using the album art as a screensaver that kicks in after a few seconds when you're not doing anything.
Logged

Offline Giova

  • Member
  • *
  • Posts: 25
Re: is there a WPS tag to capture the next track key press
« Reply #1 on: September 20, 2010, 01:01:08 PM »
You can try to use the playback mode tag:
http://www.rockbox.org/wiki/CustomWPS#Playback_Mode
Logged

Offline jimbilly

  • Member
  • *
  • Posts: 44
Re: is there a WPS tag to capture the next track key press
« Reply #2 on: September 20, 2010, 02:38:29 PM »
I tried a couple of things with %?mp, no luck.

Thanks for the input though.
Logged

Offline Giova

  • Member
  • *
  • Posts: 25
Re: is there a WPS tag to capture the next track key press
« Reply #3 on: September 20, 2010, 04:57:59 PM »
Code: [Select]
%V(0,0,20,20,0)
%?mp<|Info while playing|Info while in pause|ecc...>
I think you can also use the album art tag inside that, please, why don't you post your code here?
Logged

Offline JdGordon

  • Member
  • *
  • Posts: 1817
  • Constantly breaking stuff
Re: is there a WPS tag to capture the next track key press
« Reply #4 on: September 21, 2010, 12:16:21 AM »
I've thought about adding a tag to see if any button was pressed, but its almost impossible to do it right with so many different key layouts.
Logged


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

Offline jimbilly

  • Member
  • *
  • Posts: 44
Re: is there a WPS tag to capture the next track key press
« Reply #5 on: September 21, 2010, 04:32:58 PM »
Giova, the play status doesn't change when you skip a track, therefore it won't be of use.

I need to capture the track change or skip key somehow to get the effect I'm looking for.

something like this theoretical example:

%?mt(2.5)<true|false>

for the true result, i show my advanced info viewport, for the false, i show my album art viewport.

i made up the %mt tag that could mean,  "track # has changed" stay true for 2.5 seconds.

JDGordon, maybe something like that would make sense and be easier to implement than detecting 'any key'

Thanks
Logged

Offline pixelma

  • Rockbox Expert
  • Member
  • *
  • Posts: 645
Re: is there a WPS tag to capture the next track key press
« Reply #6 on: September 21, 2010, 04:43:33 PM »
Maybe the %pS tag could be useful for what you want to achieve. With it you can make your WPS show something different in the first seconds of a track and you are at the beginning of a track after a skip.
Logged

Offline Giova

  • Member
  • *
  • Posts: 25
Re: is there a WPS tag to capture the next track key press
« Reply #7 on: September 21, 2010, 05:42:41 PM »
pixelma is right:
Code: [Select]
%?pS(7)<in first 7s of track|rest of track>

I think this will work exactly as you want it to.
Logged

Offline jimbilly

  • Member
  • *
  • Posts: 44
Re: is there a WPS tag to capture the next track key press
« Reply #8 on: September 22, 2010, 09:57:34 AM »
awesome! that works great, exactly what i wanted, this is the code that i ended up with:

%?C<%?pS(5)<%Vd(b)|%?mv(5)<%Vd(b)|%Vd(a)>>|%Vd(b)>


so, that shows album art if there is any, unless...
1) you are in the first 5 seconds of a track in which case it shows the track details and next track info, useful when skipping
2) you jiggle the volume at which point it shows my track details and next track info


so my album art is acting like timeout wallpaper and i can see the more useful text detail when i'm navigating

thanks for everyone's input!
« Last Edit: September 22, 2010, 10:28:22 AM by jimbilly »
Logged

Offline MajiKool Dragonâ„¢

  • Member
  • *
  • Posts: 147
  • I'm me!
Re: is there a WPS tag to capture the next track key press
« Reply #9 on: September 22, 2010, 03:06:47 PM »
is there a tag to do a similar thing for the end of the song?
Logged
"Isn't it funny how even the coldest weather isn't so cold when you've got people who care about you to walk through it with you." - MajiKool Dragonâ„¢
SanDisk Sansa c240v1 + 16GB µSDHC, Apple iPhone 4 iOS4.2.1 Jailbroken

Offline Giova

  • Member
  • *
  • Posts: 25
Re: is there a WPS tag to capture the next track key press
« Reply #10 on: September 22, 2010, 05:54:18 PM »
yes, you can use %pE just like %pS

Take a look in the WPS Guide
Logged

Offline MajiKool Dragonâ„¢

  • Member
  • *
  • Posts: 147
  • I'm me!
Re: is there a WPS tag to capture the next track key press
« Reply #11 on: September 22, 2010, 05:59:43 PM »
many thanks my good sir ;D
Logged
"Isn't it funny how even the coldest weather isn't so cold when you've got people who care about you to walk through it with you." - MajiKool Dragonâ„¢
SanDisk Sansa c240v1 + 16GB µSDHC, Apple iPhone 4 iOS4.2.1 Jailbroken

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  is there a WPS tag to capture the next track key press
 

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

Page created in 0.223 seconds with 14 queries.