What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Request] Song msg send

[Request] Song msg send
Author: Message:
ombadboy
Junior Member
**


Posts: 30
Joined: Jun 2006
O.P. [Request] Song msg send
I was thinkin if its possible to have a script, to send a particular message to a user thats listening to a particular song.

Like he got turned on "what am listenin to", if a particular song (which u have predefined) is played by one of your contacts, then to automatically send him a message ( predefined too )
09-10-2006 02:14 PM
Profile PM Find Quote Report
Shondoit
Full Member
***

Avatar
Hmm, Just Me...

Posts: 227
Reputation: 15
36 / Male / Flag
Joined: Jul 2006
RE: [Request] Song msg send
It can certainly be made

You just check all contacts for media at startup/signin
And then check with OnEvent_ContactMediaChange if a contact changes his song to the one specified
Then just open a chatwindow with Messenger.OpenChat and send the message specified with ChatWnd.SendMessage
(Would have to check if there's not already a window open with the contact)

I'm not gonna make it though, I'm busy for my own, and also got school... Perhaps you can look into it yourself, or maybe someone else can have a look at it...

Success (y)
My scripts:                            [Image: shondoit.gif]
+ Timezone
+ Camelo
+ Multisearch
09-10-2006 08:17 PM
Profile PM Find Quote Report
Veggie
Full Member
***

Avatar

Posts: 415
Reputation: 21
37 / Male / Flag
Joined: Sep 2004
RE: [Request] Song msg send
code:
var array = new Array();
array['Blur - Tracy Jacks'] = "i like that song";

function OnEvent_ContactMediaChange(sEmail,sNewMedia){
    var sNewMedia_array = sNewMedia.split("\\0");
        for(var i in array){
            if(i == sNewMedia_array[5] + " - " + sNewMedia_array[4]){
                MsgPlus.DisplayToast("Contact is playing", i + "\n\nClick to send:\n" +array[i], null , "ToastClick", new Array(sEmail,array[i],i))
}}}

function ToastClick(pArray){
    chatwnd = Messenger.OpenChat(pArray[0]).SendMessage(pArray[1])
}
This should more or less work,
add more to the array up the top

This post was edited on 09-11-2006 at 05:47 PM by Veggie.
09-10-2006 11:33 PM
Profile E-Mail PM Web Find Quote Report
ombadboy
Junior Member
**


Posts: 30
Joined: Jun 2006
O.P. RE: [Request] Song msg send
amazing.. thnx :) works..
09-11-2006 05:01 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On