| Current iTunes Track | DylanJ [ 30/05/2007 ] |
This tutorial will allow you to show your current iTunes song in IRC using COM events. First off, open notepad and paste this inside of it. alias m_gettrack { if (!$com(itunes)) .comopen itunes iTunes.Application if ($com(CurrentTrack)) .comclose CurrentTrack .echo -q $com(itunes,CurrentTrack,3,dispatch* CurrentTrack) .echo -q $com(CurrentTrack,Name,3) %title = $com(CurrentTrack).result %output = $+ %title $+ return %output } alias m_close { if ($com(itunes)) { .comclose itunes } } alias music { /say $m_gettrack } Save that file as anything you want .mrc; let's call it (itunes.mrc) make sure you save it inside your mirc directory. Now you will want to go to your scripts editor (ALT-R) and hit the popups tab then navigate to view -> channel. Now paste this in the textarea below. Music:/music Music OFF:/m_close Finally to get this working type "/load -rs itunes.mrc" (or whatever you called it) anywhere inside of mIRC. To use this rightclick anywhere inside a channel window and hit "Music" or you can type /music. This script is a little buggy but that's only because i'm not going to give you a complete copy and paste tutorial, you're going to have to fiddle around. At the moment it only shows the Track Title. You can add the Artist by adding and changing some parts of the code. If you would like a complete iTunes script try this. gl hf and as always if you have any comments or troubles post below. |
|