by Nanya » Tue Oct 16, 2012 8:26 pm
Thanks so much for this script, trixmoto! As with all of your scripts, it's really great!
trixmoto wrote:New version (2.2) is now available from my website.
I have added a (non-editable) trackbar which shows the current song position. I have requested an event which will allow me to make this trackbar editable in a future version.
This event (OnChange) now exists. I have added this event to the script manually.
Code: Select all
Sub Seek(PosBar)
If ManualChange = true Then
SDB.Player.PlayBackTime = (PosBar.Value*SDB.Player.CurrentSongLength)/1000
End If
End Sub
Enable the control, create a variable (I called it ManualChange) to make sure Seek ignores it when UpdatePosBar changes Posbar, and that's it!
Thanks so much for this script, trixmoto! As with all of your scripts, it's really great!
[quote="trixmoto"]New version (2.2) is now available from my website.
I have added a (non-editable) trackbar which shows the current song position. I have requested an event which will allow me to make this trackbar editable in a future version.
[/quote]
This event (OnChange) now exists. I have added this event to the script manually.
[code]Sub Seek(PosBar)
If ManualChange = true Then
SDB.Player.PlayBackTime = (PosBar.Value*SDB.Player.CurrentSongLength)/1000
End If
End Sub[/code]
Enable the control, create a variable (I called it ManualChange) to make sure Seek ignores it when UpdatePosBar changes Posbar, and that's it!