/////////////// 为五角而努力!!! //////////////// procedure TPlayForm.MediaPlayer1Notify(Sender: TObject); begin With MediaPlayer1 do begin if Notify and (Mode=mpStopped) then begin Inc(I); // I 为全局变量 if I > ListBox1.Items.Count then I := 1; FileName := ListBox1.Items.Strings[I]; // ListBox1 中存的是文件名 Open; Play; Notify:=True; end; end; end;
为五角而努力!!!
////////////////
procedure TPlayForm.MediaPlayer1Notify(Sender: TObject);
begin
With MediaPlayer1 do
begin
if Notify and (Mode=mpStopped) then
begin
Inc(I); // I 为全局变量
if I > ListBox1.Items.Count then
I := 1;
FileName := ListBox1.Items.Strings[I]; // ListBox1 中存的是文件名
Open;
Play;
Notify:=True;
end;
end;
end;
楼主的问题不会。
up
我也需要了。