Hi, I am not having any luck getting my sound to play more than once. I am using webParse to get the current number of visitors on my site. When the number is higher than before (a new visitor) I would like it to play the sound.
eclectic-tech wrote:Your code works if I substitute a local file for the webparser URL source, and increment the value.
You should look at the 'Skin' tab of the !Log and see what your measures are returning...visitor.png
Thanks so much for pointing out the variable log!!! That helped me troubleshoot the issue. The error in my code was that I was not updating #lastCount# when the measure value was equal to or below #lastCount#. Here is the working code for anyone else that may need it:
Your first code worked because you had 'DynamicVariables=1' on [MeasureVisitors], (you removed it in your second post).
It will increase the #lastcount# variable every time, as long as you don't !Refresh the skin.
You could add [!WriteKeyValue Variables lastcount [MeasureVisitors]] to the IfAboveAction=..., to permanently set lastcount to the new value, even if you !Refresh the skin.