What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Release] toast messages

2 votes - 3 average   [Release] toast messages
Author: Message:
AberNStein
Full Member
***


Posts: 132
Reputation: 2
Joined: Jul 2006
RE: [request] toast messages
quote:
Originally posted by cooldude_i06
Interop.Call('User32','BringWindowToTop', objPlusWnd.Handle);
Interop.Call('User32','ShowWindow', objPlusWnd.Handle, 1);


you rock. i'll post the script in a few minutes.
edit: that's still not working.

code:
function OnEvent_Initialize(MessengerStart)
{
}

var toastmsg = '0';

function OnEvent_ChatWndSendMessage(ChatWnd,Message)
{
    if(Message == "!toastmsg")
    {
        if(toastmsg == '0')
        {
        toastmsg = '1'
MsgPlus.DisplayToast("Toast Message","Toast Message is ON");
        }
        else
        {
        toastmsg = '0'
MsgPlus.DisplayToast("Toast Message","Toast Message is OFF");
        }

    return ""
    }
}


function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, MessageKind)
{
if (toastmsg=='1')
{
if (Origin != Messenger.MyName)
{
if (Message.length + Origin.length < 90)
{
MsgPlus.DisplayToastContact("Toast Message",Origin + " says:",Message,"","focusIt",ChatWnd.Handle);
}
else
{
var newMsg = Message.substr(0,90 - Origin.length) + "...";
MsgPlus.DisplayToastContact("Toast Message",Origin + " says:",newMsg,"","focusIt",ChatWnd.Handle);
}
}
}
}

function focusIt(which)
{
Interop.Call('User32','BringWindowToTop', which);
Interop.Call('User32','ShowWindow', which, 1);
}

function OnEvent_Uninitialize(MessengerExit)
{
}


that's it so far. /toastmsg replaced with !toastmsg so i don't have to send over a scriptinfo.xml too.

p.s. at first i thought it was a crap idea for a script but now i realise i'd use it often.

This post was edited on 07-14-2006 at 10:29 PM by AberNStein.
[Image: gybouserbar6hc.gif]
07-14-2006 09:34 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[Release] toast messages - by Jiggs on 07-14-2006 at 07:25 PM
RE: [request] toast messages - by AberNStein on 07-14-2006 at 09:27 PM
RE: [request] toast messages - by cooldude_i06 on 07-14-2006 at 09:28 PM
RE: [request] toast messages - by AberNStein on 07-14-2006 at 09:34 PM
RE: [request] toast messages - by Jiggs on 07-14-2006 at 10:16 PM
RE: RE: [request] toast messages - by AberNStein on 07-14-2006 at 10:32 PM
RE: [release] toast messages - by Jiggs on 07-15-2006 at 12:03 AM
RE: [Release] toast messages - by AberNStein on 07-15-2006 at 01:30 AM
RE: [Release] toast messages - by Mike on 07-15-2006 at 06:12 AM
RE: [Release] toast messages - by AberNStein on 07-15-2006 at 03:24 PM
RE: [Release] toast messages - by DennisMartijn on 07-16-2006 at 10:12 AM
RE: [Release] toast messages - by Jellings on 07-16-2006 at 10:50 AM
RE: [Release] toast messages - by Jiggs on 07-16-2006 at 07:08 PM
RE: [Release] toast messages - by BlackStar on 07-16-2006 at 07:57 PM
RE: [Release] toast messages - by Jiggs on 07-16-2006 at 08:39 PM
RE: [Release] toast messages - by AberNStein on 07-17-2006 at 03:44 AM
RE: [Release] toast messages - by tinpiliycfa on 07-19-2006 at 05:05 PM
RE: [Release] toast messages - by cloudhunter on 07-19-2006 at 05:37 PM
RE: [Release] toast messages - by tinpiliycfa on 07-19-2006 at 05:41 PM
RE: [Release] toast messages - by cloudhunter on 07-19-2006 at 05:51 PM
RE: [Release] toast messages - by tinpiliycfa on 07-19-2006 at 07:49 PM
RE: [Release] toast messages - by AberNStein on 07-19-2006 at 09:19 PM
RE: [Release] toast messages - by tinpiliycfa on 07-19-2006 at 10:58 PM
RE: [Release] toast messages - by hlbobcat09 on 07-20-2006 at 06:08 AM
RE: [Release] toast messages - by Vexor on 07-20-2006 at 11:33 AM
RE: RE: [Release] toast messages - by AberNStein on 07-20-2006 at 09:23 PM
RE: [Release] toast messages - by geryxyz on 07-21-2006 at 12:08 AM
RE: [Release] toast messages - by cloudhunter on 07-21-2006 at 12:32 PM
RE: [Release] toast messages - by AberNStein on 07-21-2006 at 09:54 PM
RE: [Release] toast messages - by Jiggs on 07-30-2006 at 04:18 PM
RE: [Release] toast messages - by AberNStein on 07-31-2006 at 03:01 AM
RE: [Release] toast messages - by Jiggs on 07-31-2006 at 12:24 PM
RE: [Release] toast messages - by AberNStein on 07-31-2006 at 04:11 PM
RE: [Release] toast messages - by Jiggs on 07-31-2006 at 04:42 PM
RE: [Release] toast messages - by absorbation on 07-31-2006 at 04:49 PM
RE: [Release] toast messages - by Jiggs on 07-31-2006 at 05:00 PM
RE: [Release] toast messages - by AberNStein on 08-01-2006 at 03:50 PM
RE: [Release] toast messages - by Jiggs on 08-01-2006 at 10:47 PM
RE: [Release] toast messages - by AberNStein on 08-02-2006 at 03:37 AM
RE: [Release] toast messages - by Jiggs on 08-03-2006 at 05:11 PM
RE: RE: [Release] toast messages - by AberNStein on 08-04-2006 at 04:30 AM
RE: [Release] toast messages - by Jiggs on 08-04-2006 at 02:25 PM
RE: [Release] toast messages - by AberNStein on 08-04-2006 at 03:33 PM
RE: [Release] toast messages - by Jiggs on 08-04-2006 at 04:12 PM
RE: [Release] toast messages - by hubbie on 08-04-2006 at 06:41 PM
RE: [Release] toast messages - by Jiggs on 08-04-2006 at 07:16 PM
RE: [Release] toast messages - by hubbie on 08-04-2006 at 07:20 PM
RE: [Release] toast messages - by Jiggs on 08-08-2006 at 02:11 AM
RE: [Release] toast messages - by AberNStein on 08-08-2006 at 04:32 PM
RE: [Release] toast messages - by Jiggs on 08-14-2006 at 08:30 PM
RE: [Release] toast messages - by Dave on 08-15-2006 at 10:36 AM
RE: [Release] toast messages - by rajvora on 08-17-2006 at 05:34 PM
RE: [Release] toast messages - by Dave on 08-17-2006 at 05:44 PM
RE: [Release] toast messages - by rajvora on 08-17-2006 at 06:07 PM
RE: [Release] toast messages - by Dave on 08-17-2006 at 06:56 PM
RE: [Release] toast messages - by Jiggs on 08-17-2006 at 10:57 PM
RE: [Release] toast messages - by Dave on 08-18-2006 at 09:05 AM
RE: [Release] toast messages - by artfuldodga on 08-20-2006 at 11:36 PM
RE: [Release] toast messages - by AberNStein on 08-30-2006 at 08:02 PM
RE: [Release] toast messages - by petervk on 10-04-2006 at 08:09 AM
RE: [Release] toast messages - by Dave on 10-04-2006 at 03:54 PM
RE: [Release] toast messages - by AberNStein on 10-04-2006 at 09:52 PM
RE: [Release] toast messages - by Dave on 10-05-2006 at 03:58 PM
RE: [Release] toast messages - by kvnhmmd on 10-27-2006 at 04:45 AM
RE: [Release] toast messages - by AberNStein on 11-02-2006 at 03:52 AM
RE: [Release] toast messages - by kvnhmmd on 11-02-2006 at 06:38 AM
RE: [Release] toast messages - by kvnhmmd on 11-12-2006 at 09:03 AM
RE: RE: [Release] toast messages - by AberNStein on 12-12-2006 at 10:51 PM
RE: [Release] toast messages - by mastaX on 01-01-2007 at 12:43 PM
RE: [Release] toast messages - by AberNStein on 01-02-2007 at 01:41 AM
RE: [Release] toast messages - by AberNStein on 07-14-2007 at 06:33 PM
RE: [Release] toast messages - by riahc4 on 07-17-2007 at 02:24 AM
RE: [Release] toast messages - by AberNStein on 07-18-2007 at 08:59 PM
RE: [Release] toast messages - by riahc4 on 07-26-2007 at 06:14 PM
RE: RE: [Release] toast messages - by AberNStein on 07-27-2007 at 02:03 AM
RE: [Release] toast messages - by Firehalk on 02-27-2008 at 09:19 PM
RE: RE: [Release] toast messages - by AberNStein on 02-29-2008 at 04:37 AM
RE: [Release] toast messages - by riahc4 on 02-28-2008 at 12:35 PM


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