updating dialog text - 24/03/04 03:19 AM
Currently working on a small dialog to display currently playing MP3's.
All works fine with one exception. I made a small popup that allows you to select file to play/stop, etc. You can also pre-select MP3s to play. To accomplish this I used /splay -q .
The dialog will update the currently playing song, except when the song begins playing from within the queue. In this case it tries to update the dialog, but only makes it blank.
I have it so that it will update when you select the song, which works fine. It just will not display the next song played from within the queue.
here is a snipet of code:
I use the MP3END to trigger the timer to wait, then update the dialog with the current MP3 in play, it just wont display it for some reason!
Any help is appreciated.
All works fine with one exception. I made a small popup that allows you to select file to play/stop, etc. You can also pre-select MP3s to play. To accomplish this I used /splay -q .
The dialog will update the currently playing song, except when the song begins playing from within the queue. In this case it tries to update the dialog, but only makes it blank.
I have it so that it will update when you select the song, which works fine. It just will not display the next song played from within the queue.
here is a snipet of code:
Code:
dialog lilmp3 { title "reneMP³" size -1 -1 800 40 option pixels box "now playing :",100, 5 5 790 30 text "", 200, 15 18 780 20 } on *:DIALOG:lilmp3:init:*: { did -i lilmp3 200 1 $left($nopath($insong.fname),-4) } on *:MP3END: { .timermp3ended 1 3 dispcur | [color:red] .timerupddia 1 5 did -i lilmp3 200 1 $left($nopath($insong.fname),-4) }[/color]
I use the MP3END to trigger the timer to wait, then update the dialog with the current MP3 in play, it just wont display it for some reason!
Any help is appreciated.