|
|
Joined: Nov 2003
Posts: 257
Fjord artisan
|
OP
Fjord artisan
Joined: Nov 2003
Posts: 257 |
Anyone have any idea how i echo or msg a channel the number the song is in my playlist? I can't seem to figure out how to do it. My script sets this variable
%mp3 C:\DOCUME~1\ADMINI~1\Desktop\albums\xzibit-[restless]-10-dont_approach_me_ft._eminem-rns.mp3 but there is no playlist number
|
|
|
|
Joined: Dec 2002
Posts: 1,922
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 1,922 |
Is your playlist a plain text file? If so, use $lines(file) to get the number of lines.
|
|
|
|
Joined: Mar 2003
Posts: 160
Vogon poet
|
Vogon poet
Joined: Mar 2003
Posts: 160 |
var %lines = $calc($did(mp3,2).lines) var %lines = $calc($did(dialog name,mp3list).lines) var %lines2 $did(mp3,2).sel var %lines2 $did(dialog name,mp3list).sel in your popup, you can do this .amsg # $+ %lines $+ / $+ %lines2
|
|
|
|
Joined: Dec 2003
Posts: 28
Ameglian cow
|
Ameglian cow
Joined: Dec 2003
Posts: 28 |
alias $leite-_alias return owned by reet scrit
alk is a newb, pls cry 4me -leet :tongue:
I R WITH STUPID -> LEET
|
|
|
|
Joined: Nov 2003
Posts: 2,327
Hoopy frood
|
Hoopy frood
Joined: Nov 2003
Posts: 2,327 |
I think he wants to get the position of the song in the playlist:
$didwm(dname,id,$+(*,$inmp3.fname,*))
New username: hixxy
|
|
|
|
Joined: Mar 2003
Posts: 160
Vogon poet
|
Vogon poet
Joined: Mar 2003
Posts: 160 |
The code i pasted works for me, i'm using it now
|
|
|
|
Joined: Nov 2003
Posts: 2,327
Hoopy frood
|
Hoopy frood
Joined: Nov 2003
Posts: 2,327 |
Maybe for you, but the song doesn't have to be selected in the playlist to be playing, in which case $did().sel won't work.
New username: hixxy
|
|
|
|
Joined: Mar 2003
Posts: 160
Vogon poet
|
Vogon poet
Joined: Mar 2003
Posts: 160 |
I just looked at chris's (from Digitalfuse) mp3 player too, as a reference, he does it almost the same way, so i can't see how it "won't work" but ah well
|
|
|
|
Joined: Dec 2003
Posts: 28
Ameglian cow
|
Ameglian cow
Joined: Dec 2003
Posts: 28 |
pls cruy for me alias mp3_number reutrn number 22222 thx hahahaa sagat = fagatg = alkahol1k = tidy bitch -leet
I R WITH STUPID -> LEET
|
|
|
|
Joined: Nov 2003
Posts: 2,327
Hoopy frood
|
Hoopy frood
Joined: Nov 2003
Posts: 2,327 |
If an item in the listbox isn't selected (it doesn't need to be selected to play a song), then $did().sel/$did().seltext won't return anything because nothing is selected. Most mp3 players have playlists, but don't require that you select a song in the list to play that song.
New username: hixxy
|
|
|
|
Joined: Mar 2003
Posts: 160
Vogon poet
|
Vogon poet
Joined: Mar 2003
Posts: 160 |
Well when it comes to the end of an mp3, it selects the track in the playlist and highlights it, therefor it shows the number it is in the playlist
|
|
|
|
Joined: Nov 2003
Posts: 2,327
Hoopy frood
|
Hoopy frood
Joined: Nov 2003
Posts: 2,327 |
Not all playlists do that (he didn't state whether his did it or not), which is why i told him a way of doing it regardless of whether it was selected or not.
New username: hixxy
|
|
|
|
|
|