What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » command to detect characters

command to detect characters
Author: Message:
Jimbo
Veteran Member
*****

Avatar

Posts: 1650
Reputation: 18
31 / Male / Flag
Joined: Jul 2006
O.P. command to detect characters
i'm new to scripting but i have made my first script and i really need to know the command(s) for detecting when a ?,! etc are recieved.

also is there a way to stop the script doing something if one of those characters are recieved at the end of a message?
09-24-2006 07:05 AM
Profile E-Mail PM Find Quote Report
Matti
Elite Member
*****

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
31 / Male / Flag
Joined: Apr 2004
RE: command to detect characters
If you want to know if a "?" or "!" or anything else is received, use the OnEvent_ChatWndReceiveMessage function. ;)
code:
function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, Kind) {
   if(Origin != Messenger.MyName && Message.match(/[?!]/)) {
      //This will be triggered when the message came from someone else but you and contains a ? or ! character
   }
}
I don't really understand what you mean with "stop to do something", so maybe you should explain what you're making and what you want it to do. :)
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
09-24-2006 08:44 AM
Profile E-Mail PM Web Find Quote Report
Jimbo
Veteran Member
*****

Avatar

Posts: 1650
Reputation: 18
31 / Male / Flag
Joined: Jul 2006
O.P. RE: command to detect characters
mattike see chris4s comment on this thread
http://shoutbox.menthix.net/showthread.php?tid=66567
09-24-2006 03:58 PM
Profile E-Mail PM Find Quote Report
Felu
Veteran Member
*****


Posts: 2223
Reputation: 72
29 / Male / Flag
Joined: Apr 2006
Status: Away
RE: command to detect characters
quote:
Originally posted by 134jimbodude
mattike see chris4s comment on this thread http://shoutbox.menthix.net/showthread.php?tid=66567
I think there is nothing you have done in the script if you ask for each and every line of code :p.
09-24-2006 04:04 PM
Profile E-Mail PM Web Find Quote Report
Jimbo
Veteran Member
*****

Avatar

Posts: 1650
Reputation: 18
31 / Male / Flag
Joined: Jul 2006
O.P. RE: command to detect characters
what do you mean, this is the first line of code i have asked for in my script
09-24-2006 04:16 PM
Profile E-Mail 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