Shoutbox

How to trigger my plugin when special message received from my contact - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Forum: Plug-Ins (/forumdisplay.php?fid=28)
+------ Thread: How to trigger my plugin when special message received from my contact (/showthread.php?tid=32733)

How to trigger my plugin when special message received from my contact by cryingfox on 10-09-2004 at 06:58 PM

How to trigger my plugin when special message received from my contact?
I use Delphi Version of SDK.
I have tried TMPPlugin's Notify property, but found that it can only trigger by a TMPCommands. Can it get notified when receive a certain message from my contact? Or there is another way to complete this with a plugin.

Really needs your help,Buddy.


RE: How to trigger my plugin when special message received from my contact by RaceProUK on 10-10-2004 at 08:21 AM

Have you read the docs about ReceiveNotify? It is only called if a message starts with sCCNotify. You should prepend sCCNotify to your message (and a five-char code) to trigger your plugin.


RE: How to trigger my plugin when special message received from my contact by cryingfox on 10-10-2004 at 02:18 PM

Thank you for your reply. What I want to complete is describe as below: 
1. My Contact type ?queryTheQueryCommand
2. I reply him with the result

My Contact havent installed the MsgPlus! and my plugin. So I need the sCCNotify  to be Normal Text.
I've try change  sCCNotify to #47 (symbol /), and my contact sent me with a '/NTEST', but the notify didnt  be triggered.

Where is the problem?


RE: How to trigger my plugin when special message received from my contact by RaceProUK on 10-10-2004 at 03:53 PM

sCCNotify is the value it is because it HAS to be that value.


RE: How to trigger my plugin when special message received from my contact by cryingfox on 10-10-2004 at 05:51 PM

Oh, that means there's no way that contact manual input message(without a MsgPlus plugin) can trigger my plugin, right?