"Sheri" wrote: > Called from the label of a bar button, the script is going to run every one > or two seconds. That is not enough time to create the object and return the > info and release the object and unload the plugin every time before it gets > run again. So that (mostly) explains why your version above doesn't work.
Well, since I'm learning this stuff, wait to see more errors in the future :) > Do you have any documentation of the interface? There is probably a way to > query whether or not there is a track loaded before asking for the Artist and > Name of that track. You can download the iTunes SDK Package for Windows here: http://magisesse.com/Documents/itunescomwindowssdk.zip This thread may also be of interest to you: http://www.autoitscript.com/forum/index.php?showtopic=21334 > I haven't used it very much but my version seems to work for me as long a > song is playing or paused, or I have Quit the player. Same here using your script. > When the com plugin gives an error (such as when the player is loaded but no > track is active), I can cancel that execution and it resolves. But I am > running it from the tooltip instead of the label, so I have some control over > when the script gets run. I see...That's a good way to test it.
