What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Request] C/C++ Keywords Script

[Request] C/C++ Keywords Script
Author: Message:
Paril
Junior Member
**

Avatar
Admin of Paril's Projects

Posts: 69
30 / Male / Flag
Joined: Jul 2006
O.P. [Request] C/C++ Keywords Script
Hello everyone.

I'm new to the language (Jscript or whatever) that this uses, although I am skilled in C/C++.

Anyways, I want to try and make a plugin and will turn C/C++ keywords blue, comments green, etc.

I just need a starter, such as a code that will just turn one word blue, and I can do the rest.

I came up with this:

code:
function OnEvent_ChatWndSendMessage(pChatWnd, sMessage)
{
    if (sMessage.substr(0,1) == "if")
        sMessage.substr(0,1) = "[c=2]if[/c]";
    return sMessage;
}

but that didn't work.

I also tried..


code:
function OnEvent_ChatWndSendMessage(pChatWnd, sMessage)
{
    if (sMessage == "if")
        sMessage = "[c=2]if[/c]";
    return sMessage;
}

The first one works, but it only works when I say "if" and nothing else.
Any ideas?


-Paril Aughven Kalashnikov

This post was edited on 07-06-2006 at 01:19 AM by Paril.
07-06-2006 01:17 AM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[Request] C/C++ Keywords Script - by Paril on 07-06-2006 at 01:17 AM
RE: [Request] C/C++ Keywords Script - by Silentdragon on 07-06-2006 at 01:26 AM
RE: [Request] C/C++ Keywords Script - by Paril on 07-06-2006 at 01:29 AM
RE: [Request] C/C++ Keywords Script - by ShawnZ on 07-06-2006 at 01:29 AM
RE: [Request] C/C++ Keywords Script - by Paril on 07-06-2006 at 01:31 AM
RE: [Request] C/C++ Keywords Script - by Silentdragon on 07-06-2006 at 01:42 AM
RE: [Request] C/C++ Keywords Script - by ShawnZ on 07-06-2006 at 01:45 AM
RE: [Request] C/C++ Keywords Script - by Paril on 07-06-2006 at 01:48 AM
RE: [Request] C/C++ Keywords Script - by ShawnZ on 07-06-2006 at 01:53 AM
RE: [Request] C/C++ Keywords Script - by Paril on 07-06-2006 at 01:59 AM
RE: [Request] C/C++ Keywords Script - by Silentdragon on 07-06-2006 at 02:26 AM
RE: [Request] C/C++ Keywords Script - by Paril on 07-06-2006 at 02:35 AM
RE: [Request] C/C++ Keywords Script - by matty on 07-06-2006 at 04:57 AM
RE: [Request] C/C++ Keywords Script - by Paril on 07-06-2006 at 05:00 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