What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [REQUEST]Need help on a personal script!

[REQUEST]Need help on a personal script!
Author: Message:
MattyEFC
New Member
*


Posts: 3
Joined: Aug 2008
O.P. [REQUEST]Need help on a personal script!
Right, Hi, first post here, a bit of a Newbie when it comes to scripting.
Right, What I want my script to do is, when I type '/Flash', I want it to type FLASHBANG! and close the conversation (/close).
Right, my question is, How on Earth, would I script it, so that, when I type /flash it does these things, I have got the hang of the rest, I just need help on this bit.
code:
function notify(msg){
    msg = MsgPlus.RemoveFormatCodes(msg);
    MsgPlus.DisplayToast("Flashbang Script!", msg, "");
}

function OnEvent_ChatWndSendMessage(ChatWnd,Message){

if(Message=="/flash"){

        <MESSAGES GO HERE>

        notify("You have just Flashbanged those Mofo's.")

        return'';

    }
   
}   

Thanks in advance, Guys! :)

This post was edited on 08-26-2008 at 01:54 AM by MattyEFC.
08-26-2008 01:53 AM
Profile E-Mail PM Find Quote Report
MeEtc
Patchou's look-alike
*****

Avatar
In the Shadow Gallery once again

Posts: 2200
Reputation: 60
38 / Male / Flag
Joined: Nov 2004
Status: Away
RE: [REQUEST]Need help on a personal script!
You shouldn't even need a script for this, just use an autotext
[Image: signature/]     [Image: sharing.png]
I cannot hear you. There is a banana in my ear.
08-26-2008 01:58 AM
Profile PM Web Find Quote Report
MattyEFC
New Member
*


Posts: 3
Joined: Aug 2008
O.P. RE: [REQUEST]Need help on a personal script!
quote:
Originally posted by MeEtc
You shouldn't even need a script for this, just use an autotext
SCRAP WHAT I JUST PUT.
Thanks mate, really appriciated, I just clicked on to what you meant, Thanks! :D:)

This post was edited on 08-26-2008 at 02:04 AM by MattyEFC.
08-26-2008 02:00 AM
Profile E-Mail PM Find Quote Report
MeEtc
Patchou's look-alike
*****

Avatar
In the Shadow Gallery once again

Posts: 2200
Reputation: 60
38 / Male / Flag
Joined: Nov 2004
Status: Away
RE: [REQUEST]Need help on a personal script!
[Image: flashbang.png]
[Image: signature/]     [Image: sharing.png]
I cannot hear you. There is a banana in my ear.
08-26-2008 02:05 AM
Profile PM Web Find Quote Report
MattyEFC
New Member
*


Posts: 3
Joined: Aug 2008
O.P. RE: [REQUEST]Need help on a personal script!
quote:
Originally posted by MeEtc
[Image: flashbang.png]
I clicked on after I posted.
Thanks for your help mate! :)
08-26-2008 02:08 AM
Profile E-Mail PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: [REQUEST]Need help on a personal script!
However if you wanted to script it

code:
function OnEvent_ChatWndSendMessage(pChatWnd, sMessage){
    if( sMessage === '/flash' ){
        if( pChatWnd.EditChangeAllowed === true ) {
            pChatWnd.SendMessage('FLASHBANG!');
            Interop.Call( 'user32', 'SendMessageW', pChatWnd.Handle, 0x10 /* WM_CLOSE */, 0, 0 );
            return '';
        }
    }
}

This post was edited on 08-26-2008 at 04:37 AM by matty.
08-26-2008 04:36 AM
Profile E-Mail 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