What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » new and need some help

new and need some help
Author: Message:
debeste95
New Member
*


Posts: 11
– / Male / Flag
Joined: Dec 2009
O.P. RE: RE: new and need some help
quote:
Originally posted by SmokingCookie
Hello debeste95
(Cool name! :P )

Event handlers, as these are called, are just functions with a specific name that Plus! recognises:

JScript code:
function OnEvent_ChatWndReceiveMessage(ChatWnd,Origin,Message,MessageKind) {
    if(Origin !== Messenger.MyName) { // Check if we did not send the message
        MsgPlus.DisplayToast("","A contact has said something!");
        [whatever you want to do]
    }
    return Message; // We don't want to do anything with the Message
}

This will display a pop-up message in the bottom-right corner of the screen, titled "Messenger Plus! Live", saying "A contact has said something!"; no sound will be played when displaying the toast and it won't be clickable.
so when do i have to put 'if', and when do i have to put 'function' before the event?
çause in GML (it's a noob language, i know) you always use if, so i don't have any experience with function...
but i think this will work, much thanx, now i can try to make my own pokemon battler with uber-pro functiens etc. (kidding! :P)
12-21-2009 01:20 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
new and need some help - by debeste95 on 12-21-2009 at 01:02 PM
RE: new and need some help - by SmokingCookie on 12-21-2009 at 01:15 PM
RE: RE: new and need some help - by debeste95 on 12-21-2009 at 01:20 PM
RE: new and need some help - by SmokingCookie on 12-21-2009 at 01:25 PM
RE: RE: new and need some help - by debeste95 on 12-21-2009 at 01:31 PM
RE: new and need some help - by SmokingCookie on 12-21-2009 at 01:33 PM
RE: new and need some help - by debeste95 on 12-21-2009 at 01:37 PM
RE: new and need some help - by SmokingCookie on 12-21-2009 at 01:41 PM
RE: new and need some help - by debeste95 on 12-21-2009 at 01:47 PM
RE: new and need some help - by SmokingCookie on 12-21-2009 at 01:50 PM
RE: RE: new and need some help - by debeste95 on 12-21-2009 at 01:55 PM
RE: new and need some help - by matty on 12-21-2009 at 01:53 PM
RE: new and need some help - by debeste95 on 12-21-2009 at 04:09 PM
RE: new and need some help - by SmokingCookie on 12-21-2009 at 05:49 PM
RE: RE: new and need some help - by debeste95 on 12-21-2009 at 05:55 PM
RE: new and need some help - by SmokingCookie on 12-21-2009 at 06:02 PM
RE: new and need some help - by debeste95 on 12-22-2009 at 09:40 AM
RE: new and need some help - by SmokingCookie on 12-22-2009 at 09:52 AM
RE: new and need some help - by debeste95 on 12-22-2009 at 09:55 AM
RE: new and need some help - by SmokingCookie on 12-22-2009 at 09:58 AM
RE: new and need some help - by debeste95 on 12-22-2009 at 12:46 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