What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Idea] space replacement to emoticon.

[Idea] space replacement to emoticon.
Author: Message:
dodos622
New Member
*


Posts: 5
Joined: Aug 2006
O.P. [Idea] space replacement to emoticon.
Hi,

Back in the old days it was possible to use a space for a shortcut for a emoticon.

So with this line: "Hello how are you?"

Looks like: "Hello(L)how(L)are(L)you?"

But now in MSN 7 and up, this function is removed.
My idea is to make a script that "scans" for spaces and replace it with you favorite emoticon shortcut.

I can only program in Visual Basic. I tried to learn script, but I don't understand it.

Maybe a nice option is to activate the script by typing 2 spaces ("  ") and stop the script again with 2 spaces.

I hope somebody likes that idea and make the script for us.

Greetings,

Dodos622
08-10-2006 08:57 PM
Profile E-Mail PM Find Quote Report
Huhu_Manix
Full Member
***

Avatar
Upload me again... *salivate*

Posts: 106
– / Male / –
Joined: Jul 2006
RE: [Idea] space replacement to emoticon.
You don't understand javascript ?? O_o

code:
function OnEvent_ChatWndSendMessage(ChatWnd,Message){
while(Message.indexOf(" ")!=-1)Message=Message.replace(" ", "(l)");
return Message;
}

This post was edited on 08-10-2006 at 09:06 PM by Huhu_Manix.
08-10-2006 09:05 PM
Profile E-Mail PM Web Find Quote Report
dodos622
New Member
*


Posts: 5
Joined: Aug 2006
O.P. RE: [Idea] space replacement to emoticon.
It sounds so easy if you see the answer.

But yes I dont understand javascript. :( shame on me, but I cant find good books or sites (in Dutch), wich can help me.

I am just a Visual Basic programmer who dreams back to the good old days of QuickBasic and the MSX.

Thanks alot for the script and I try it out.

:D
08-10-2006 09:10 PM
Profile E-Mail PM Find Quote Report
andrey
elite shoutboxer
****

Avatar

Posts: 795
Reputation: 48
– / Male / Flag
Joined: Aug 2004
RE: [Idea] space replacement to emoticon.
[Image: msn_goat.gif]don't[Image: msn_goat.gif]you[Image: msn_goat.gif]think[Image: msn_goat.gif]that[Image: msn_goat.gif]this[Image: msn_goat.gif]would[Image: msn_goat.gif]be[Image: msn_goat.gif]a[Image: msn_goat.gif]bit[Image: msn_goat.gif]annoying[Image: msn_goat.gif]?[Image: msn_goat.gif]:-/[Image: msn_goat.gif]


I would rethink using that before annoying my contacts...:wink:

This post was edited on 08-10-2006 at 09:12 PM by andrey.
[Image: w2kzw8qp-sq2_dz_b_xmas.png]
08-10-2006 09:11 PM
Profile PM Find Quote Report
dodos622
New Member
*


Posts: 5
Joined: Aug 2006
O.P. RE: [Idea] space replacement to emoticon.
I have some emoticons who are very discrete. It looks just nice.

I just like it because it remembers me of the old days.

(There was a girl who shows me the option) ;)

And you know, some people use so many emoticons that you cant read anymore what they saying, without to look what shortcut is used.
08-10-2006 09:21 PM
Profile E-Mail PM Find Quote Report
Huhu_Manix
Full Member
***

Avatar
Upload me again... *salivate*

Posts: 106
– / Male / –
Joined: Jul 2006
RE: RE: [Idea] space replacement to emoticon.
quote:
Originally posted by dodos622
It sounds so easy if you see the answer.

But yes I dont understand javascript. :( shame on me, but I cant find good books or sites (in Dutch), wich can help me.

I am just a Visual Basic programmer who dreams back to the good old days of QuickBasic and the MSX.

Thanks alot for the script and I try it out.

:D


A book ? Just look at some script, javascript is the easier language i've ever seen !

for variable : var gna = "a string";
for function : function youpi(arg1, arg2){}

With only this you can do what you want...

I've made all my scripts "Huhu" 1 one day after begin to learn javascript...

EDIT : Sorry if i was direct... :$ But if you can code with javascript, you can easly code with javascript. Just try again !

This post was edited on 08-10-2006 at 11:33 PM by Huhu_Manix.
08-10-2006 09:35 PM
Profile E-Mail PM Web Find Quote Report
leachy08
Junior Member
**


Posts: 35
Joined: Jul 2006
RE: [Idea] space replacement to emoticon.
function OnEvent_ChatWndSendMessage(ChatWnd, Message) {
    do {
        Message.replace(" ", "emoshortcut")
        strpos = Message.indexOf(" ")
    } while (strpos != -1)
)

That should do it. I think... Replace emoshortcut with your emotion like :)

This post was edited on 08-11-2006 at 03:04 PM by leachy08.
08-11-2006 03:03 PM
Profile E-Mail PM Find Quote Report
Anton
New Member
*


Posts: 12
30 / Male / –
Joined: Aug 2006
RE: RE: [Idea] space replacement to emoticon.
quote:
Originally posted by dodos622
It sounds so easy if you see the answer.

But yes I dont understand javascript. :( shame on me, but I cant find good books or sites (in Dutch), wich can help me.

I am just a Visual Basic programmer who dreams back to the good old days of QuickBasic and the MSX.

Thanks alot for the script and I try it out.

:D

I found a site on Google: http://www.w3schools.com/js/default.asp. If you want a site in Dutch you can search on Google with for exemple "learn javascript" (of course i Dutch, not in English). You can try in html until you can it, and then read the Script Documentation. If you get any problems, you can ask them on this forum, and probably get answers.
08-11-2006 06:50 PM
Profile 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