What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Autotext + Name!

Pages: (2): « First [ 1 ] 2 » Last »
Autotext + Name!
Author: Message:
Gropfi
New Member
*

Avatar

Posts: 13
36 / Male / –
Joined: Jul 2006
O.P. Autotext + Name!
Hi,

is it possible to write a script that say

Auto text like "hi" and then the nickname of the user?

Like:

Wayne says:
Hi
Me says:
Hi Wayne

Barbie says
Hi
Me says
Hi Barbie

Just example names ;)
But is it possible anyway?
08-14-2006 03:59 AM
Profile E-Mail PM Web Find Quote Report
Felu
Veteran Member
*****


Posts: 2223
Reputation: 72
30 / Male / Flag
Joined: Apr 2006
Status: Away
RE: Autotext + Name!
Yes its possible [Image: msn_grin.gif]. Use the code below [Image: msn_tongue.gif].
code:
function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, MessageKind){ //When a Message is Recieved
    if (Origin != Messenger.MyName){ //If the Message is not send by me
        if (Message.substr(0,2) == 'Hi'){ //If the first two letters of the message are Hi
           ChatWnd.SendMessage('Hi '+Origin); //Send a Message Hi <Who said Hi>
           }
        }
    }


This post was edited on 08-14-2006 at 04:21 AM by Felu.
08-14-2006 04:17 AM
Profile E-Mail PM Web Find Quote Report
ddunk
Veteran Member
*****

Avatar

Posts: 1228
Reputation: 51
35 / Male / Flag
Joined: Mar 2004
RE: Autotext + Name!
quote:
Originally posted by -!Felu!-
Yes its possible [Image: msn_grin.gif]. Use the code below [Image: msn_tongue.gif].
code:
function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, MessageKind){
if (Origin != Messenger.MyEmail){
    if (Message.substr(0,2) == 'Hi'){
       ChatWnd.SendMessage('Hi '+Origin);
       }
    }
}


Origin is the name, not the email.
code:
function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, MessageKind){
if (Origin != Messenger.MyName){
    if (Message.substr(0,2) == 'Hi'){
       ChatWnd.SendMessage('Hi '+Origin);
       }
    }
}

This post was edited on 08-14-2006 at 04:19 AM by ddunk.
08-14-2006 04:19 AM
Profile E-Mail PM Web Find Quote Report
Gropfi
New Member
*

Avatar

Posts: 13
36 / Male / –
Joined: Jul 2006
O.P. RE: Autotext + Name!
He is still writing.. Hi +Origin
is it my failure?
just copyed it...
08-14-2006 07:02 AM
Profile E-Mail PM Web Find Quote Report
H-Des
New Member
*


Posts: 2
Joined: Dec 2005
RE: Autotext + Name!
It is working correct here.

Only remind that if both users would use this script you will get in a loop which you can't end...
08-14-2006 12:11 PM
Profile PM Find Quote Report
RaceProUK
Elite Member
*****

Avatar

Posts: 6073
Reputation: 57
39 / Male / Flag
Joined: Oct 2003
RE: RE: Autotext + Name!
code:
function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, MessageKind){
if (Origin != Messenger.MyName){
    if (Message.match("^[Hh][Ii]$"){
       ChatWnd.SendMessage('Hi '+Origin);
       }
    }
}
won't loop. And it's case insensitive.

This post was edited on 08-14-2006 at 02:27 PM by RaceProUK.
[Image: spartaafk.png]
08-14-2006 02:27 PM
Profile PM Web Find Quote Report
Gropfi
New Member
*

Avatar

Posts: 13
36 / Male / –
Joined: Jul 2006
O.P. RE: Autotext + Name!
Ok iŽll try it again. THX
but only i am using the script... :D

with Hi it worked.. :)

but the script is stopped know...
what is wrong in this?

code:
*/   
var hi = 'Hi +Origin (:'
var on = '1'

function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, MessageKind){
if (Origin != Messenger.MyName){
if (Message.substr(0,2) == 'Hi'){
ChatWnd.SendMessage('Hi '+Origin (: );
}
if (Message.substr(0,2) "Hallo")
{
ChatWnd.SendMessage('Hi '+Origin (: );
}
if (Message.substr(0,2) "hallo")
{
ChatWnd.SendMessage('Hi '+Origin (: );
}
if (Message.substr(0,2) "Hi@")
{
ChatWnd.SendMessage('Hi '+Origin (: );
}
if (Message.substr(0,2) "hi@")
{
ChatWnd.SendMessage('Hi '+Origin (: );
}
if (Message.substr(0,2) "Hello")
{
ChatWnd.SendMessage('Hi '+Origin (: );
}
if (Message.substr(0,2) "hello")
{
ChatWnd.SendMessage('Hi '+Origin (: );
}
if (Message.substr(0,2) "hi*")
{
ChatWnd.SendMessage('Hi '+Origin (: );
}
if (Message.substr(0,2) "Seas")
{
ChatWnd.SendMessage('Hi '+Origin (: );
}
if (Message.substr(0,2) "seas")
{
ChatWnd.SendMessage('Hi '+Origin (: );
}
if (Message.substr(0,2) "Zeas")
{
ChatWnd.SendMessage('Hi '+Origin (: );
}
if (Message.substr(0,2) "zeas")
{
ChatWnd.SendMessage('Hi '+Origin (: );
}
if (Message.substr(0,2) "huhu")
{
ChatWnd.SendMessage('Hi '+Origin (: );
}
if (Message.substr(0,2) "Huhu")
{
ChatWnd.SendMessage('Hi '+Origin (: );
}
if (Message.substr(0,2) "moin")
{
ChatWnd.SendMessage('Hi '+Origin (: );
}
if (Message.substr(0,2) "Moin")
{
ChatWnd.SendMessage('Hi '+Origin (: );
}
if (Message.substr(0,2) "morgen")
{
ChatWnd.SendMessage('Hi '+Origin (: );
}
if (Message.substr(0,2) "Morgen")
{
ChatWnd.SendMessage('Hi '+Origin (: );
}
if (Message.substr(0,2) "servus")
{
ChatWnd.SendMessage('Hi '+Origin (: );
}
if (Message.substr(0,2) "Servus")
{
ChatWnd.SendMessage('Hi '+Origin (: );
}
if (Message.substr(0,2) "tag")
{
ChatWnd.SendMessage('Hi '+Origin (: );
}
if (Message.substr(0,2) "Tag")
{
ChatWnd.SendMessage('Hi '+Origin (: );
}
if (Message.substr(0,2) "servas")
{
ChatWnd.SendMessage('Hi '+Origin (: );
}
if (Message.substr(0,2) "Servas")
{
ChatWnd.SendMessage('Hi '+Origin (: );
}
}
}
}

if (Message.substr(0,4) "hello")
{
ChatWnd.SendMessage('Hi '+Origin (: );
}


Something like this?
Im not a perfect coder so sry :/
Still a hobby ;)

This post was edited on 08-17-2006 at 07:42 AM by Gropfi.
08-17-2006 07:02 AM
Profile E-Mail PM Web Find Quote Report
RaceProUK
Elite Member
*****

Avatar

Posts: 6073
Reputation: 57
39 / Male / Flag
Joined: Oct 2003
RE: Autotext + Name!
quote:
Originally posted by Gropfi
'Hi '+Origin (:
should be
'Hi '+Origin + '(:'
[Image: spartaafk.png]
08-17-2006 08:24 AM
Profile PM Web Find Quote Report
Silentdragon
Full Member
***

Avatar
if(life==null && wrists) EmoAlert();

Posts: 148
Reputation: 2
34 / Male / –
Joined: Jun 2006
RE: Autotext + Name!
If you like I could add this as an option in Answer Machine Plus.
08-17-2006 08:26 AM
Profile E-Mail PM Web Find Quote Report
Gropfi
New Member
*

Avatar

Posts: 13
36 / Male / –
Joined: Jul 2006
O.P. RE: Autotext + Name!
If you want ;)
But iŽll try it now by my own, with a little help ;)


Hmm the script is still Stopped...
Not working :/

This post was edited on 08-17-2006 at 09:43 AM by Gropfi.
08-17-2006 09:37 AM
Profile E-Mail PM Web 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