Re: iLike for iTunes is cool , but how they did it?
<tianchunfeng@gmail.com> wrote:
1. when I start up and run iTunes , the iLike
application
will attach itself as a side bar to iTunes , iLike is not
a plug-in to
iTunes , but just attach to iTunes.
It seem that iLike is aware of iTunes application. Either
iTunes has documented SDK that allows to write utilities as
iLike, or iLike does some hacks in order to monitor iTunes
main window. Probably it installs hook into iTunes, too.
Basically, you need to obtain target window handle in order
to accomlish anything. Use Spy++ to reveal iTunes main
window caption and class name. I think that iLike uses this
information to find iTunes. After that, you position your
window besides target window and monitor target window
position to adjust your own window position.
2. After successfully attach to iTunes , iLike
have ability
to "know" the current song name which played by iTunes ,
and mean
while , send the sony name to iLike server then show you
more songs
related to the playing song.
I don't know how it's done. Again, it can be iTunes SDK or
screen scraping from iTunes GUI.
Alex