Thread: Mortscript
View Single Post
  #2 (permalink)  
Old 08-13-2008, 09:35 AM
schettj's Avatar
schettj
morsus mihi
Offline
Location: Not from around these parts
 
Join Date: Oct 2006
Posts: 3,017
Reputation: 3616
schettj is still contributing even after becoming a VIPschettj is still contributing even after becoming a VIPschettj is still contributing even after becoming a VIPschettj is still contributing even after becoming a VIPschettj is still contributing even after becoming a VIPschettj is still contributing even after becoming a VIPschettj is still contributing even after becoming a VIPschettj is still contributing even after becoming a VIPschettj is still contributing even after becoming a VIPschettj is still contributing even after becoming a VIPschettj is still contributing even after becoming a VIP
Mentioned: 2 Post(s)
Tagged: 0 Thread(s)
Re: Mortscript

I can probably help. I did a little image copy dance in mortscript to get weather icons to reflect the weather in rltoday via a mortscript. The MOJO you want is, when you detect that the current song is changed*, use the COPY command to copy over the correct album art file to the specific path you're using in Wisebar to show the "current song" artwork. Then you call RedrawToday to force a refresh, which will do the right thing on the display side.

* generally, this is the tricky bit. You can have this mortscript sit in the background, sleeping. Every 10 seconds or so it loops, checking whatever it needs to check to find out the currently playing song, if any. Whatever it finds is compared to whatever it found last time it checked - if those two differ, then its time to update the image file and redraw... Then sleep for 10... that's the loop.
Reply With Quote