Just a quick update cause I have to leave. This is the start of some scripting support I am adding to Winamp. You cant do much with it yet, and it can only run one script at a time (it currently stays running to recieve events, so the scripting object isnt deleted thus not freed etc). And is a fair bit buggy when the script borks.
Anyway, paste this into the scripting window to see it at least do something. Requires Word.
Set wd = CreateObject("Word.Basic")
wd.appshow
wd.filenew
WAobj.SayHi
WAobj.Play
Sub WAObj_ChangedTrack
wd.Insert "New Track...."
End Sub
Obviously this will be much more complete over time, and allow heaps of stuff. In particular the ability to run scripts concurrently, and to be invoked from menus with arguments etc.
Anyway, paste this into the scripting window to see it at least do something. Requires Word.
Set wd = CreateObject("Word.Basic")
wd.appshow
wd.filenew
WAobj.SayHi
WAobj.Play
Sub WAObj_ChangedTrack
wd.Insert "New Track...."
End Sub
Obviously this will be much more complete over time, and allow heaps of stuff. In particular the ability to run scripts concurrently, and to be invoked from menus with arguments etc.
Comment