loutch Posted July 13, 2009 Report Share Posted July 13, 2009 Je supprime mon compte, trop déçu de la tournure que prend le forum... Link to comment Share on other sites More sharing options...
adnane002 Posted July 15, 2009 Report Share Posted July 15, 2009 slt,ben voici j'ai trouvé ca sur le net, je pense que ca pourrai t'aider :PAL for Top10 Most Requested :PAL.Loop := False;PAL.WaitForTime(T['11:59:49']); {Wait for Noon}{================================================= =}var D : TDataSet;var C : Integer;D := Query('SELECT songlist.*, count(*) as cnt '+'FROM songlist,requestlist '+'WHERE songlist.ID = requestlist.songID '+' AND requestlist.code < 700 '+'GROUP BY songlist.ID '+'ORDER BY cnt DESC LIMIT 10',[],True);{Add requests to Queue.We add to the top of the Queue, effectively reversing theorder of the requests - playing #10 first and #1 last}C := 0;D.First;while not D.EOF dobeginC := C + 1;WriteLn('#'+IntToStr(C)+'. '+D['artist']+' - '+D['title']);Queue.AddFile(D['filename'],ipTop);D.Next;end;{================================================= =} Pour l'arrêter :Pal.Loop:=True;var I : Integer;for I := 0 to Encoders.Count-1 doif not Encoders[i].Started thenRequestPolicy.Enabled := False;for I := 0 to Encoders.Count-1 doif Encoders[i].Started thenRequestPolicy.Enabled := True;Bon codage :D Link to comment Share on other sites More sharing options...
loutch Posted July 15, 2009 Author Report Share Posted July 15, 2009 Je supprime mon compte, trop déçu de la tournure que prend le forum... Link to comment Share on other sites More sharing options...
adnane002 Posted July 15, 2009 Report Share Posted July 15, 2009 Merci toujours au service :D Link to comment Share on other sites More sharing options...
XAVIER33230 Posted July 16, 2009 Report Share Posted July 16, 2009 Merci beaucoup ! Link to comment Share on other sites More sharing options...
Sylar Posted July 16, 2009 Report Share Posted July 16, 2009 Merci bien :D Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.