Heya SirSmiley,
Thanks for the response...

I stated in the original post the I am not using
WScript.CreateObject("Foobar2000.Application.0.7") but
CreateObject("Foobar2000.Application.0.7") instead... however, that's not the problem...
I've managed to send messages to Foobar2000 using the following method:
Code: vbscript
- Set fb2k = WScript.CreateObject("Foobar2000.Application.0.7")
- Set playback = fb2k.Playback
- WScript.ConnectObject playback, "playback_"
- Sub playback_Started()
- WScript.Echo "Playback was started."
- End Sub
However, I've thus far been unable to receive any messages FROM the program...
eg: my progress bar, track time display and track title display don't update...
I know this can be achieved by using a timer to continuously check if Foobar2000 is playing or not, but I'm not to keen on the idea of using timers all the time as I personally find them somewhat of a resource hog...
Using a timer to update the progress bar and so on is one thing... but using a timer to keep on checking is Foobar2000 is playing is a bit much in my books!!
This is exactly why I want to figure out how to implement an event handler in DesktopX... also known as event sinking / catching events...
The following code works when used in a *.VBS file...
NOTE: The use of
WScript.CreateObject("Foobar2000.Application.0.7") instead of
CreateObject("Foobar2000.Application.0.7") is only because the script is running from a *.VBS file!!
Code: vbscript
- Set fb2k = WScript.CreateObject("Foobar2000.Application.0.7")
- Set playback = fb2k.Playback
- WScript.ConnectObject playback, "playback_"
- Sub playback_Started()
- WScript.Echo "Playback was started."
- End Sub
Please, please, please can someone show me how it's done or let me know if I'm taking shots in the dark!!
Thanks a stack!!