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


--
Brad Rhine
[EMAIL PROTECTED]
http://bradrhine.com
Tangelo: Web Publishing... With A Twist!
_______________________________________________
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