Retrieving playlist length |
Retrieving playlist length |
ReK_ |
Nov 19 2006, 03:58 PM
Post
#1
|
Newbie Group: Members Posts: 3 Joined: 19-November 06 Member No.: 202 |
I've been trying to get the current playlist's length stored in a mirc variable, but I can't seem to do it...
using $dll(ac,mexec,getlistlength) keeps returning the string "S_OK" and echoing the data I need in the status window. I can't seem to get the actual data into a variable. Is there another function for this? I've tried to use the getlistlength with a handler of "/set %len" but that does nothing, and I can't seem to find an amip variable that contains the info, so I can't meval anything. Also, is it possible to get the playlist index of the current song? |
Serge |
Nov 19 2006, 08:43 PM
Post
#2
|
AMIP Developer Group: Root Admin Posts: 935 Joined: 12-March 06 Member No.: 1 |
$dll(ac,meval,var_ll)
QUOTE Also, is it possible to get the playlist index of the current song? $dll(ac,meval,var_pos) |
ReK_ |
Nov 19 2006, 09:11 PM
Post
#3
|
Newbie Group: Members Posts: 3 Joined: 19-November 06 Member No.: 202 |
Ah, thank you very much.
When I'm done with it, I'll post the product. It's a simple request queue bot for a cast station. It allows 'admins,' who recognize by pming their commands and including the password, to edit and delete the queue, as well as skip the current track. It's meant to be used with a very large playlist normally set on random, with the html dump of it posted where everyone can see to find the song index, as that's how requests are made. |
ReK_ |
Nov 19 2006, 09:30 PM
Post
#4
|
Newbie Group: Members Posts: 3 Joined: 19-November 06 Member No.: 202 |
ok, one more for ya: how do you get the song info from a specified index, if it isn't the current song?
|
Serge |
Nov 19 2006, 10:46 PM
Post
#5
|
AMIP Developer Group: Root Admin Posts: 935 Joined: 12-March 06 Member No.: 1 |
$dll(ac,meval,formatsong "INDEX:%VARIABLES")
for example: $dll(ac,meval,formatsong "1:%name") INDEX is from 1 to %ll (1-based). |