1. Add the script with name "FastForwardInDjMode.vbs" into Scripts/Auto.
Code: Select all
Sub OnStartup
Script.RegisterEvent SDB, "OnPlay", "ForwardInDjMode"
End Sub
Sub ForwardInDjMode
Dim pltime
pltime = 100
If Not (SDB.Player.PlaybackTime+(pltime*1000) > SDB.Player.CurrentSongLength) Then
SDB.Player.PlaybackTime = SDB.Player.PlaybackTime+(pltime*1000)
End If
End Sub3. Start playing a track, by clicking on it in main window (I suppose it's called collection). Note, that the track starts from 1min 40sec.
4. Press "Next track" button. Note, that next track starts from 1min 40sec.
5. Repeat step 4. Note the same.
6. Press "Previous track" button. Note, that previous track starts from 0sec.
7. Repeat step 6. Note, that the track again starts from 1min 40sec.
8. Repeat steps 6 and 7.
Result:
OnPlay event is not triggered all the time, when navigating to the previous tracks, but is invoked one by one.
Environment:
Win7 SP1, Core2 Duo 3.0 GHz, 8 GB RAM, MediaMonkey 4.0.7.1511 Standard, MegaDJ plug-in enabled