On 27/10/2006, at 11:57 AM, Brad Rhine wrote:

On Oct 26, 2006, at 9:42 PM, Jeff Ayling wrote:

I need to control iTunes on Windows. Has anyone used the iTunes Windows SDK via RB?

Here is a simple example of how to create a playlist on Windows. Does anyone know how I may be able to execute this code on Windows via RB? Or Convert this code somehow so that it will run from within RB?

This code works to get the currently playing track. I haven't messed around with creating playlists, but maybe this will point you in the right direction?

Dim iTunes as new OLEObject("iTunes.Application")
TheString="Currently listening to: "+EndOfLine
TheString=TheString+iTunes.CurrentTrack.Name+" by "
TheString=TheString+iTunes.CurrentTrack.Artist



Hey thanks Brad, that looks great.

Should this work 'out of the box' or will I need to add the Windows COM object files to my project?

Thanks


Jeff
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to