Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> little problem with clipboard format
sjirafje
post Jun 14 2007, 12:16 AM
Post #1


Newbie
*

Group: Members
Posts: 4
Joined: 13-June 07
Member No.: 316



Hi all!

I wrote a format but I've got some difficulties with the following line:

CODE
%?shuffle='on'<Shuffle is on, thus unable to tell wich song is next|Coming up next: %?pos='%ll'<nothing, this is the last song of the playlist|$next(%?2<"%2" by "%1" |%name>)>>


But for a reason I don't understand, the outcome in the clipboard (when playing the last song of the playlist with shuffle off) is not
Coming up next: nothing, this is the last song of the playlist
but
Coming up next: "the name of the first song of the playlist"

Who can help me out? Thanx in advance...
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Serge
post Jun 14 2007, 06:22 AM
Post #2


AMIP Developer
***

Group: Root Admin
Posts: 935
Joined: 12-March 06
Member No.: 1



I think %ll is not evaluated before comparing, so such conditions can work only with the constant expressions in the right part.

I can try to make it work and put a test version for you. Which player do you use?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
sjirafje
post Jun 14 2007, 12:05 PM
Post #3


Newbie
*

Group: Members
Posts: 4
Joined: 13-June 07
Member No.: 316



That would be great smile.gif

I'm using Winamp 5.35 and Amip 2.53
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Serge
post Jun 14 2007, 01:40 PM
Post #4


AMIP Developer
***

Group: Root Admin
Posts: 935
Joined: 12-March 06
Member No.: 1



Try this version. Replace original file with this one.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
sjirafje
post Jun 14 2007, 02:45 PM
Post #5


Newbie
*

Group: Members
Posts: 4
Joined: 13-June 07
Member No.: 316



I've replaced it and restarted winamp. But I don't notice any difference. When playing the last song of the playlist it still shows the first song of the playlist.

Would it help if I post the entire format?

CODE

-> %?7='rock'<(]o.o[)     Now rockin' on...     (]o.o[)|%?7='gothic'<(]o.o[)     Now rockin' on...     (]o.o[)|%?7='gothic rock'<(]o.o[)     Now rockin' on...     (]o.o[)|%?7='hard rock'<(]o.o[)     Now rockin' on...     (]o.o[)|%?7='heavy metal'<(]o.o[)     Now rockin' on...     (]o.o[)|%?7='metal'<(]o.o[)     Now rockin' on...     (]o.o[)|%?7='rock & roll'<(]o.o[)     Now rockin' on...     (]o.o[)|%?7='classic rock'<(]o.o[)     Now rockin' on...     (]o.o[)|%?7='dance'<(]o.o[)     Now blasting through the speakers...     (]o.o[)|%?7='trance'<(]o.o[)     Now blasting through the speakers...     (]o.o[)|%?7='eurodance'<(]o.o[)     Now blasting through the speakers...     (]o.o[)|%?7='hardcore'<(]o.o[)     Now blasting through the speakers...     (]o.o[)|%?7='techno'<(]o.o[)     Now blasting through the speakers...     (]o.o[)|%?7='terror'<(]o.o[)     Now blasting through the speakers...     (]o.o[)|%?7='rave'<(]o.o[)     Now blasting through the speakers...     (]o.o[)|(]o.o[)     Now listening to...     (]o.o[) >>>>>>>>>>>>>>>
-> %?2<"%2" by "%1" |%name>
-> %?4<Album: "%4"|Album: Unknown> %?7<Genre: %7|Genre: Unknown>
-> Played %mil:%sel of %min:%sec (%prc %), Filesize: %fl MB
-> %?shuffle='on'<Shuffle is on, thus unable to tell wich song is next|Coming up next: $next("%2" by "%1")>
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Serge
post Jun 14 2007, 03:25 PM
Post #6


AMIP Developer
***

Group: Root Admin
Posts: 935
Joined: 12-March 06
Member No.: 1



CODE
%?shuffle='on'<Shuffle is on, thus unable to tell wich song is next|Coming up next: %?pos='%ll'<nothing, this is the last song of the playlist|$next(%?2<"%2" by "%1" |%name>)>>

Works for me:
Coming up next: nothing, this is the last song of the playlist
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
sjirafje
post Jun 14 2007, 03:33 PM
Post #7


Newbie
*

Group: Members
Posts: 4
Joined: 13-June 07
Member No.: 316



Ooops, i used a previous version of the 'script'
Adjusted it, and it now works like a charm biggrin.gif

Thanx a lot!
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members: