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

Autotext + Name!
Author: Message:
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: Autotext + Name!
quote:
Originally posted by Gropfi
what is wrong in this?
code:
var hi = 'Hi +Origin (:'

var hi = 'Hi' +Origin + '(:' ;

Origin is a variable. The rest is text (and thus must be enclosed in parenthesis).
Also don't forget to end each line with ";".

quote:
Originally posted by Gropfi
code:
ChatWnd.SendMessage('Hi '+Origin (: );

ChatWnd.SendMessage('Hi '+ Origin + '(:');

same reason as above.

quote:
Originally posted by Gropfi
code:
if (Message.substr(0,2) "morgen") {
and similar lines

if (Message.substr(0,6) == "morgen") {

You make a comparisson, so you need a comparisson operator between the two.

substr() is a function which takes a substring out of a given string. The syntax is substr(start,end). Since the length of "morgen" is 6 characters you need to specify to get the first 6 characters in the substr function which is done by substr(0, 6).


quote:
Originally posted by H-Des
It came in a loop when I tested it by using 2 msn accounts at the same pc. But I didn't test it on another pc.
It should have exactly the same outcome.

To avoid looping use regular expressions like RacePROuk showed. And with regular expressions you can also do what markee showed using an array btw.

This post was edited on 08-19-2006 at 09:54 AM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
08-19-2006 09:37 AM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Autotext + Name! - by Gropfi on 08-14-2006 at 03:59 AM
RE: Autotext + Name! - by Felu on 08-14-2006 at 04:17 AM
RE: Autotext + Name! - by ddunk on 08-14-2006 at 04:19 AM
RE: RE: Autotext + Name! - by RaceProUK on 08-14-2006 at 02:27 PM
RE: Autotext + Name! - by Gropfi on 08-14-2006 at 07:02 AM
RE: Autotext + Name! - by H-Des on 08-14-2006 at 12:11 PM
RE: RE: Autotext + Name! - by Mike on 08-17-2006 at 11:52 AM
RE: RE: RE: Autotext + Name! - by H-Des on 08-17-2006 at 01:15 PM
RE: Autotext + Name! - by Gropfi on 08-17-2006 at 07:02 AM
RE: Autotext + Name! - by RaceProUK on 08-17-2006 at 08:24 AM
RE: Autotext + Name! - by Silentdragon on 08-17-2006 at 08:26 AM
RE: Autotext + Name! - by Gropfi on 08-17-2006 at 09:37 AM
RE: Autotext + Name! - by markee on 08-17-2006 at 09:55 AM
RE: Autotext + Name! - by Gropfi on 08-17-2006 at 10:26 AM
RE: Autotext + Name! - by markee on 08-17-2006 at 10:29 AM
RE: Autotext + Name! - by CookieRevised on 08-17-2006 at 10:43 AM
RE: Autotext + Name! - by CookieRevised on 08-19-2006 at 09:37 AM
RE: Autotext + Name! - by Sunshine on 08-19-2006 at 10:31 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