Results 1 to 13 of 13

Thread: Spy++ and iTunes

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2001
    Posts
    297

    Spy++ and iTunes

    I just wanted to see if anyone would help me with this. I'm trying to get the name of the current playing song but am having much difficulty. Can anyone help me figure this out?

  2. #2

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2001
    Posts
    297

    Re: Spy++ and iTunes

    you know itunes? the program developed by apple?

    the song that is currently playing. If you dont have the music software it is a free download at apple.com

  4. #4

    Re: Spy++ and iTunes

    any solution on this?

  5. #5
    Fanatic Member
    Join Date
    Mar 2005
    Posts
    537

    Re: Spy++ and iTunes

    I don't have iTunes.

    The most I can tell you is open Spy++ and look at the iTunes classnames and see if you see a song you're listening to in quotation marks. If you DO then use FindWindowEx and SendMessage to get the window's text.

    -Sir Loin

  6. #6
    Hyperactive Member
    Join Date
    Sep 2001
    Location
    San Jose, Ca. - USA
    Posts
    302

    Re: Spy++ and iTunes

    download the itunes com sdk, which will provide you with a help file for this type of stuff.

    Code:
        Dim oTunes As iTunesLib.iTunesApp
        Dim oTrack As iTunesLib.IITTrack
        
        
        Set oTunes = New iTunesLib.iTunesApp
        
        Set oTrack = oTunes.CurrentTrack
        MsgBox oTrack.Name
        
        Set oTrack = Nothing
        Set oTunes = Nothing

  7. #7

    Re: Spy++ and iTunes

    http://developer.apple.com/sdk/itunescomsdk.html

    i also download a plugin that puts the current playing song in a text file
    and then opened that file in my program but ill look at the sdk

  8. #8
    Addicted Member JensPeder's Avatar
    Join Date
    Sep 2005
    Posts
    249

    Re: Spy++ and iTunes

    BUMP

    Anyone figured out how to get the track title AND artist? The above example only outputs the tracktitle without the artist...

  9. #9

    Re: Spy++ and iTunes

    i use the plugin called amip

  10. #10
    Addicted Member JensPeder's Avatar
    Join Date
    Sep 2005
    Posts
    249

    Re: Spy++ and iTunes

    Thanks man, but I figured it out. I took the time to REALLY read the SDK, turns out this is quite easy:


    VB Code:
    1. Private Sub Form_Load()
    2. Dim iTunesApp As New iTunesApp
    3.  
    4. MsgBox (iTunesApp.CurrentTrack.Artist & " - " & iTunesApp.CurrentTrack.Name)
    5.  
    6. set iTunesApp = nothing
    7. End Sub


    edit, forgot a "= nothing"!

  11. #11

    Re: Spy++ and iTunes

    i am trying to use this in vb but i cant figure out how to reference the sdk or anything a little help plz

  12. #12

  13. #13

    Re: Spy++ and iTunes

    ty i relized that after the post and couldnt delete it fast enough ty any ways

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width