Hi,
I'm having a bit of a problem with the FvwmScript List widget, I use
the following bit of code to update the list (widget 1) when the
currently playing song changes and do nothing if it doesn't, however
it seems like the list is updated anyway, so the condition is ignored,
this same code did work alrigt for a PushButton and an ItemDraw widget
before though.
PeriodicTasks
Begin
#the flickering is just too heavy when updating every second...:(
If (RemainderOfDiv (GetTime) 30)==0 Then
Begin
#update the list when the currently playing song changes
Set $currtitle = (GetOutput {mpc} 1 -1)
If $currtitle == $oldtitle Then
Do Nop
Else
Begin
ChangeTitle 1 (GetOutput
{$FVWM_USERDIR/scripts/FvwmMpd/parseplaylist.sh| tr '\n' '|'} 1 -1 )
Set $oldtitle = $title
End
End
End
The entire script can be found here:
http://www.lair.be/files/error/FvwmApplet-MpdPlEd
Thanks in advance for any insight you can provide
--
Bert Geens