Autotext + Name! |
Author: |
Message: |
Gropfi
New Member
Posts: 13
36 / / –
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 |
|
|
Felu
Veteran Member
Posts: 2223 Reputation: 72
30 / /
Joined: Apr 2006
Status: Away
|
RE: Autotext + Name!
Yes its possible . Use the code below .
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 |
|
|
ddunk
Veteran Member
Posts: 1228 Reputation: 51
35 / /
Joined: Mar 2004
|
RE: Autotext + Name!
quote: Originally posted by -!Felu!-
Yes its possible . Use the code below .
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 |
|
|
Gropfi
New Member
Posts: 13
36 / / –
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 |
|
|
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 |
|
|
RaceProUK
Elite Member
Posts: 6073 Reputation: 57
39 / /
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.
|
|
08-14-2006 02:27 PM |
|
|
Gropfi
New Member
Posts: 13
36 / / –
Joined: Jul 2006
|
O.P. RE: Autotext + Name!
Ok iŽll try it again. THX
but only i am using the script...
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 |
|
|
RaceProUK
Elite Member
Posts: 6073 Reputation: 57
39 / /
Joined: Oct 2003
|
RE: Autotext + Name!
quote: Originally posted by Gropfi
'Hi '+Origin (:
should be
'Hi '+Origin + '(: '
|
|
08-17-2006 08:24 AM |
|
|
Silentdragon
Full Member
if(life==null && wrists) EmoAlert();
Posts: 148 Reputation: 2
34 / / –
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 |
|
|
Gropfi
New Member
Posts: 13
36 / / –
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 |
|
|
Pages: (2):
« First
[ 1 ]
2
»
Last »
|
|