View Single Post
Old 8th September 2005, 17:20   #308
CaAl
Junior Member
 
Join Date: Apr 2004
Location: NL
Posts: 23
I've written a couple of .vbs files that mimic pressing the play/pause, stop, backward, forward buttons, respectively.
The code for the forward button is as follows:

code:

Set wo = CreateObject("ActiveWinamp.Application")
dim lastpos, curitem
curitem = wo.playlist.position
lastpos = wo.playlist.count
if not(curitem = lastpos) then
curitem = curitem + 1
wo.playlist.position = curitem
wo.play
end if



Quite straightforward - but not working good enough. When I put winamp on shuffle mode, forward goes to the next song in the queue instead of a random song.

Is there any way to check whether shuffle is on or off? (Or better even, is there an easier way to mimic the forward-button?)
CaAl is offline   Reply With Quote