What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Computer Details script

Computer Details script
Author: Message:
mrfireman
Junior Member
**


Posts: 25
Joined: Oct 2008
O.P. Computer Details script
Hey guys again! :)

Now, I started to trying scripting, but i go slowly, so be patient with me :) I have a script:

http://www.msgpluslive.net/scripts/view/14-Computer-Details/


And I want to make keywords for them. (For example "!processor" to the chatwindow, and show my processor)

I have readen the script tutorial, but found nothing to programming keywords. Can you tell me what do I have to write to make a code for all these parts on this script?

At this time, I will write the code, just help me to give all base. (dont want to make work for others to write all the script)

Thx dudes ;)
12-22-2008 09:26 PM
Profile E-Mail PM Find Quote Report
roflmao456
Skinning Contest Winner
****

Avatar

Posts: 955
Reputation: 24
29 / Male / Flag
Joined: Nov 2006
Status: Away
RE: Computer Details script
You can try the event ChatWndReceiveMessage.
also a switch:
code:
switch(string){
case "test1":
// equivalent of if(string == "test1")
break;
case "test2":
// code..
break;
}
[quote]
Ultimatess6
: What a noob mod
12-23-2008 12:32 AM
Profile PM Web Find Quote Report
mrfireman
Junior Member
**


Posts: 25
Joined: Oct 2008
O.P. RE: Computer Details script
I tried (with SendMessage) and it doesn't work... :(

function OnEvent_ChatWndSendMessage(ChatWnd,Message){
    switch(string){
     case "OS_name":
     if (string == "proci")
     break;
    }


What is the wrong dont you know? :(
12-23-2008 08:10 AM
Profile E-Mail PM Find Quote Report
Pinecone
New Member
*

Avatar
Coffee Powered

Posts: 9
34 / Male / Flag
Joined: Dec 2008
RE: Computer Details script
I think that a switch statement would not be the best for someone who is just learning JScript as he will probably want multiple commands of variable length, which will make a switch statement difficult to manage.

Try this:

code:
function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, MsgKind) {

    // In the following line, note that 10 is the length of the string '!processor'
    if (Message.substring(0, 10).toLowerCase() == '!processor') {
        // Put code here to send information about your processor.
    }

    // again, 9 refers to the length of '!graphics'
    if (Message.substring(0, 9).toLowerCase() == '!graphics') {
        // Put code here to send information about your graphics card.
    }
   
    return Message;
}


Note that if you add a return statement anywhere else in there, you should return Message so you know what your partner said.

This post was edited on 12-23-2008 at 06:52 PM by Pinecone.
12-23-2008 03:34 PM
Profile E-Mail PM Find Quote Report
mrfireman
Junior Member
**


Posts: 25
Joined: Oct 2008
O.P. RE: Computer Details script
Ty Pinecone :)
12-23-2008 05:19 PM
Profile E-Mail PM Find Quote Report
Lou
Veteran Member
*****

Avatar

Posts: 2475
Reputation: 43
– / Male / Flag
Joined: Aug 2004
RE: Computer Details script
I don't want to burst your bubble but Computer details script 1.0 by -dt-.
[Image: msghelp.net.png]
The future holds bright things in it\\\'s path, but only time will tell what they are and where they come from.
Messenger Stuff Forums
12-23-2008 05:40 PM
Profile PM Web Find Quote Report
vaccination
Veteran Member
*****

Avatar

Posts: 2513
Reputation: 43
32 / Male / –
Joined: Apr 2005
RE: Computer Details script
quote:
Originally posted by .Lou
I don't want to burst your bubble but Computer details script 1.0 by -dt-.
Your point? He has this script, he's modifying it for increased [personal] functionality.

At least read the guy's post...

This post was edited on 12-23-2008 at 05:46 PM by vaccination.
[Image: jumbled.png]
12-23-2008 05:46 PM
Profile PM Find Quote Report
Lou
Veteran Member
*****

Avatar

Posts: 2475
Reputation: 43
– / Male / Flag
Joined: Aug 2004
RE: Computer Details script
quote:
Originally posted by vaccination
quote:
Originally posted by .Lou
I don't want to burst your bubble but Computer details script 1.0 by -dt-.
Your point? He has this script, he's modifying it for increased [personal] functionality.

At least read the guy's post...
My bad, I misread it. I had figured he was trying to make a completely new one. My apologies :).
[Image: msghelp.net.png]
The future holds bright things in it\\\'s path, but only time will tell what they are and where they come from.
Messenger Stuff Forums
12-23-2008 05:51 PM
Profile PM Web Find Quote Report
warmth
Veteran Member
*****

Avatar
Electronic Engineer

Posts: 1730
Reputation: 26
39 / Male / Flag
Joined: Jul 2003
RE: Computer Details script
Sorry for bring back this old thread but there is any chances that someone could update this script to work on Vista/Seven with latest versions of MP!L and WLM?
@warmth - Beta Testing a life!
Official Nokia (former Ovi) Suite Beta Tester | Nokia Beta Labs Contributor of the month (June, 2011)
11-14-2009 02:34 AM
Profile PM Web 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