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

Need help making a new script
Author: Message:
Emperor
New Member
*


Posts: 4
35 / Male / –
Joined: Apr 2007
O.P. RE: Need help making a new script
quote:
Originally posted by Matty
You will need to code it so it find the ID number based on the profile name or however its done.

Well I want it so that I could type:

/PlayerID *players ID here*

So basically I just want that number to be attached to the end of the link the game is using. (Keep in mind this is the first thing I've written in JS :P)

Btw heres my code:

function OnEvent_Initialize(MessengerStart)
{
}

function OnGetScriptCommands()
{
    var s = "<ScriptCommands>";
    s += " <Command>";
    s += " <Name>PlayerID</Name>";
    s += " <Description>Search Player ID's!</Description>";
    s += " </Command>";
    s += "</ScriptCommands>";
return s;
}

Debug.Trace("Hello World!");

function OnEvent_ChatWndSendMessage(ChatWnd, strMessage)
{
     if (strMessage.charAt(0) != '/') return strMessage;
       var arrMessage = strMessage.split(' ');
       var strCommand = arrMessage[0];
      switch(strCommand){
        case "/PlayerID":
    var idnumber = "2";
    MsgPlus.DisplayToast("Game Search", "You have searched for idnumber", "Please wait.");
    //Interop.Call("shell32", "ShellExecuteW", ChatWnd.Handle, "open", "http://www.game.com/profiles.php?XID=" + idnumber;
    new ActiveXObject("WScript.Shell").Run("http://www.game.com/profiles.php?XID=" + idnumber);
    return "";
    default:
    return strMessage;
}}

Debug.Trace("Hello World!");

function OnEvent_Uninitialize(MessengerExit)
{
}

This post was edited on 04-18-2007 at 02:37 AM by Emperor.
04-18-2007 02:34 AM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Need help making a new script - by Emperor on 04-15-2007 at 04:51 PM
RE: Need help making a new script - by win_crook on 04-16-2007 at 02:55 PM
RE: Need help making a new script - by Emperor on 04-17-2007 at 12:47 AM
RE: Need help making a new script - by Lou on 04-17-2007 at 12:51 AM
RE: Need help making a new script - by Emperor on 04-17-2007 at 09:08 PM
RE: RE: Need help making a new script - by matty on 04-18-2007 at 01:30 AM
RE: Need help making a new script - by Emperor on 04-18-2007 at 02:34 AM


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