mIRC Home    About    Download    Register    News    Help

Print Thread
#86779 14/06/04 02:25 AM
Joined: Nov 2003
Posts: 257
A
Fjord artisan
OP Offline
Fjord artisan
A
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

#86780 14/06/04 02:43 AM
Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
Is your playlist a plain text file? If so, use $lines(file) to get the number of lines.

#86781 14/06/04 04:15 PM
Joined: Mar 2003
Posts: 160
Vogon poet
Offline
Vogon poet
Joined: Mar 2003
Posts: 160
Code:
 var %lines = $calc($did(mp3,2).lines)


var %lines = $calc($did(dialog name,mp3list).lines)

Code:
 var %lines2 $did(mp3,2).sel 


var %lines2 $did(dialog name,mp3list).sel

in your popup, you can do this .amsg # $+ %lines $+ / $+ %lines2

#86782 14/06/04 04:16 PM
Joined: Dec 2003
Posts: 28
L
Ameglian cow
Offline
Ameglian cow
L
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
#86783 14/06/04 04:20 PM
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
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
#86784 14/06/04 04:21 PM
Joined: Mar 2003
Posts: 160
Vogon poet
Offline
Vogon poet
Joined: Mar 2003
Posts: 160
The code i pasted works for me, i'm using it now
shocked

#86785 14/06/04 04:26 PM
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
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
#86786 14/06/04 04:34 PM
Joined: Mar 2003
Posts: 160
Vogon poet
Offline
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 smile

#86787 14/06/04 04:37 PM
Joined: Dec 2003
Posts: 28
L
Ameglian cow
Offline
Ameglian cow
L
Joined: Dec 2003
Posts: 28
pls cruy for me

alias mp3_number reutrn number 22222 thx

hahahaa sagat = fagatg = alkahol1k = tidy bitch

-leet shocked


I R WITH STUPID -> LEET
#86788 14/06/04 04:42 PM
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
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
#86789 14/06/04 04:47 PM
Joined: Mar 2003
Posts: 160
Vogon poet
Offline
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

#86790 14/06/04 05:17 PM
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
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

Link Copied to Clipboard