What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Unique request,well not so unique

Pages: (2): « First [ 1 ] 2 » Last »
Unique request,well not so unique
Author: Message:
hearwithoutyou
New Member
*

Please stay here by me

Posts: 4
33 / Male / –
Joined: Oct 2006
O.P. Undecided  Unique request,well not so unique
Could someone please make me a script. All i want is the script to be able to replace text(i already know how to do that) but heres the exception i don't want  it to replace the text i type when the contact I'm chatting with is online from his mobile.Example : When the person is online from a mobile his personal message is replace with "(Online)".So i don't want my text to be replaced when the person online from his mobile. Can anyone help me. I know its a very simple thing to do 
10-24-2006 03:26 PM
Profile E-Mail PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Unique request,well not so unique
Messenger Plus! does not allow commands or messages to be parsed by mobile conversations as people with Mobile Messenger cannot use Plus!.
10-24-2006 03:36 PM
Profile E-Mail PM Find Quote Report
hearwithoutyou
New Member
*

Please stay here by me

Posts: 4
33 / Male / –
Joined: Oct 2006
O.P. RE: Unique request,well not so unique
Umm...uve got the wrong idea...ill try to giv a a more expressive example...i think i didnt put it to u the right way...for example: if a person using a mobile phone gets online on msn through a service such as ebuddy or e-messenger or mig33 hes shown as online from a mobile on the strating part of the conversation "Messages you type here are delivered to a mobile phone or page....." n so on is displayed.it is for those contact i do not want my text to be replaced

This post was edited on 10-24-2006 at 03:48 PM by hearwithoutyou.
10-24-2006 03:41 PM
Profile E-Mail PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Unique request,well not so unique
quote:
Originally posted by Matty
Messenger Plus! does not allow commands or messages to be parsed by mobile conversations as people with Mobile Messenger cannot use Plus!.
quote:
Originally posted by hearwithoutyou
if a person using a mobile phone gets online on msn
They are still using the mobile service. Plus! does not allow you to interact with it.
10-24-2006 05:38 PM
Profile E-Mail PM Find Quote Report
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
36 / Male / Flag
Joined: Aug 2006
RE: Unique request,well not so unique
Matty, the replacing of text happens on a PC that uses MP!L, not on the mobile device. The mobile does not need MP!L, just as a normal users doesn't need it to receive messages that have had text replaced via a script.

Don't know if you can detect if a window is a "Mobile" contact though.

400th Post :D

This post was edited on 10-24-2006 at 08:15 PM by Spunky.
<Eljay> "Problems encountered: shit blew up" :zippy:
10-24-2006 08:13 PM
Profile PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Unique request,well not so unique
quote:
Originally posted by SpunkyLoveMuff
Matty, the replacing of text happens on a PC that uses MP!L, not on the mobile device. The mobile does not need MP!L, just as a normal users doesn't need it to receive messages that have had text replaced via a script.
Thats not what I am saying.

What he is trying to do is send Arabic characters to contacts that are signing in through their Mobile phone on e-messenger or a service like that.

The mobile conversation shouldn't be recognized through Messenger Plus!.

If you want to use an else statement to not send the stylish text to them just do

code:
if (Email != "johndoe@hotmail.com || Email != "johndoe2@hotmail.com){
   // stylize text
}
10-24-2006 09:27 PM
Profile E-Mail PM Find Quote Report
hearwithoutyou
New Member
*

Please stay here by me

Posts: 4
33 / Male / –
Joined: Oct 2006
O.P. RE: Unique request,well not so unique
i want the characters to be seen to only the contacts who are online from their computer and NOT from their mobile.Cos some character are not displayed correctly on the mobile.I guess its not possible to do it with scripts.thnx for the reply
10-25-2006 08:32 AM
Profile E-Mail PM Find Quote Report
hearwithoutyou
New Member
*

Please stay here by me

Posts: 4
33 / Male / –
Joined: Oct 2006
O.P. RE: Unique request,well not so unique
/*
----------
|Stylizer|
----------
*/

function OnGetScriptMenu(nLocation){
    var showbit = '';
    return "<ScriptMenu><MenuEntry Id=\"WndAbout\">About</MenuEntry></ScriptMenu>";
}

function OnEvent_MenuClicked(sMenuId,nLocation,iOriginWnd){
    if(sMenuId == "GetLatest"){ GetLatest(true); }
    else if(sMenuId == "Options"){
            var wnd = MsgPlus.CreateWnd('windows.xml','WndOptions');

    }
else if(sMenuId == "WndAbout"){
            var wnd = MsgPlus.CreateWnd('windows.xml','WndAbout');
    }
    else if(sMenuId == "Shownews"){ iOriginWnd.SendMessage("(*) "+latestnews); }
}




function OnEvent_ChatWndSendMessage(pChatWnd, sMessage){
sMessage = sMessage.replace("a","&#945;");
sMessage = sMessage.replace("b","b");
sMessage = sMessage.replace("c","¢");
sMessage = sMessage.replace("d","&#8706;");
sMessage = sMessage.replace("e","&#1108;");
sMessage = sMessage.replace("f","ƒ");
sMessage = sMessage.replace("g","g");
sMessage = sMessage.replace("h","&#1085;");
sMessage = sMessage.replace("i","&#8054;");
sMessage = sMessage.replace("j","j");
sMessage = sMessage.replace("k","&#1082;");
sMessage = sMessage.replace("l","&#8467;");
sMessage = sMessage.replace("m","&#1084;");
sMessage = sMessage.replace("n","&#951;");
sMessage = sMessage.replace("o","&#963;");
sMessage = sMessage.replace("p","&#961;");
sMessage = sMessage.replace("q","q");
sMessage = sMessage.replace("r","&#1103;");
sMessage = sMessage.replace("s","s");
sMessage = sMessage.replace("t","&#1090;");
sMessage = sMessage.replace("u","&#965;");
sMessage = sMessage.replace("v","&#957;");
sMessage = sMessage.replace("w","&#974;");
sMessage = sMessage.replace("x","&#967;");
sMessage = sMessage.replace("y","&#947;");
sMessage = sMessage.replace("z","&#658;");
return sMessage;
}

the above code works when i type in the message it changes what i type in to the defined letters.
the unicord chracters replace the original text properly
now the only problem is when two unicord characters are in the same sentence
example:
hi
^ the above sentence works but
: hello
that doesn't work
because there are two l's in the sentence only 1 l gets replaced the other stays the same
Can anyone help me in solving this
also can anyone tell me how i can make so that
when i open the a conversation with a contact i want
and type a command with a "/" this replacement technique is disabled. but it should not be disabled for everyone, only for that particular contact
Thnx for the help everyone
10-25-2006 09:46 AM
Profile E-Mail PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Unique request,well not so unique
[/code]function OnEvent_ChatWndSendMessage(pChatWnd, sMessage){
sMessage = sMessage.replace(/a/gi,"&#945;");
return sMessage;
}[/code]
Add the bolded parts to each of the replaces statements. That will replace all characters in the message.
10-25-2006 12:10 PM
Profile E-Mail PM Find Quote Report
Jesus
Scripting Contest Winner
****

Avatar
Koffie, my cat ;)

Posts: 623
Reputation: 15
38 / Male / Flag
Joined: Jul 2005
RE: RE: Unique request,well not so unique
quote:
Originally posted by Matty
If you want to use an else statement to not send the stylish text to them just do

code:
if (Email != "johndoe@hotmail.com || Email != "johndoe2@hotmail.com){
   // stylize text
}


[maybe a bit offtopic]
what's the use of an if-statement if it always returns true?
it does the same as
code:
// stylize text
or am I missing something here?
[/maybe a bit offtopic]

This post was edited on 10-25-2006 at 12:16 PM by Jesus.
10-25-2006 12:16 PM
Profile PM Find Quote Report
Pages: (2): « First [ 1 ] 2 » Last »
« 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