Prev Previous Post   Next Post Next
Old 28th August 2004, 06:21   #1
shaneh
Major Dude
 
Join Date: Jan 2004
Location: Brisbane, Australia
Posts: 1,193
Winamp Scripting

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.
Attached Files
File Type: zip gens.zip (21.1 KB, 2813 views)

Last edited by shaneh; 28th August 2004 at 06:49.
shaneh is offline   Reply With Quote
 
Go Back   Winamp & Shoutcast Forums > Developer Center > Winamp Development

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump