Shoutbox

Some n00b Questions - 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: Some n00b Questions (/showthread.php?tid=21958)

Some n00b Questions by madknifa on 03-01-2004 at 08:14 AM

Hello, I'm new to plug-in for MSN Plus making and I'm a little stuck, I'm using C for the making:

1. How do I get the message from someone sending it to the person? I think it's the Notify one but I'm not sure.

3. How do I send a message to another person?

4. How do I make it play sounds?

2. How do I get the MSN Name of the person, e-mail address, etc

Any help would be great, Thanks (Y)


RE: Some n00b Questions by optimism_ on 03-01-2004 at 08:28 AM

1) not sure what you are asking here

2) You can *only* send messages by returning from ParseCommand, ParseTag or ReceiveNotify. You cannot send arbitary messages back to plus.

3) PlaySound() would be an obvious choice - see the win32api docs on that

4) Using the messenger apis, and the IMessenger object that plus! passes you as part of the PLUGIN_PARAM struct


RE: Some n00b Questions by Mike on 03-01-2004 at 11:20 AM

Well I suggest you do it in VB...I think that its easier to write MsgPlus! Plugins in vb...If you write the plugin in vb then I can also help you with the PlaySound API because I have used it...Look at http://www.allapi.net ...

But it depends on your choise...


RE: Some n00b Questions by CookieRevised on 03-01-2004 at 11:53 AM

It doesn't matter what language he uses, an API is an API. It works just the same in C as in VB...


RE: Some n00b Questions by RaceProUK on 03-01-2004 at 12:50 PM

I've used PlaySound, and I think Messenger uses it too. I would recommend:
C++: Use the MCI library
VB: Use WMP
Both of these should be easy to use (not letting his own experiences and n00b skillz with C++ prevent him from telling the truth ;)).


RE: Some n00b Questions by madknifa on 03-01-2004 at 03:20 PM

on question 1 i ment, if someone sends the user usinging the plugin.. how do i get that message


RE: Some n00b Questions by optimism_ on 03-01-2004 at 06:02 PM

Parse command and Parse tag functions are executed by only the person sending the command/tag

If ParseCommand returns a Notification Message then that message is sent to every member of the conversation. If a contact has messenger plus! installed, it will strip the first 6 characters from the message and call [b]ReceiveNotify[b]. Therefore, if you want a command to play a sound for everyone in a conversation, you must have the sound playing code in the Receive Notify function, and you must send a notification message