hello, I am new to scripting, so excuse me, if this is to lame:
I am trying to build a function, that will tell me, when my track has been 'scobbled' in last.fm. to do so, I need know for how long I have been listening to a track. unlike the %playback_time% variable, my function should keep up counting the seconds normally, even if I jump around within the track.
I thought Id just compare two timestamps, one when I started listening and one with the current time in seconds, and determine for how long I have been listening.
so here is the problem: when I want to save the timestamp for when I started listening, foobar will always save the content of the variable dynamically. so with every second that passes, this timestamp will increase by one.
my question is, how can I save this number (this timestamp) so it 'freezes'/save it statically?
$put(timestamp, ... ) is useless I suppose....
thx for any help
