What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Api Send Message

Api Send Message
Author: Message:
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: Api Send Message
Maybe I'm completely misunderstanding what you actually want xXDarknessXx, but from what I understand you misunderstand what an API is... (can you still follow :p)....

There is no Windows API to send a message to a chat window and/or block a contact. An API is a special procedure build into Windows which does some low-level stuff, no matter what kind of program the application is.

The "SendMessage" Windows API, which you can call and execute with a Interop.Call() instruction in Plus! scripting, has got absolutely nothing to do with Instant Messaging. It is just a name of a very common used internal Windows procedure to send a numerical command to a specific window. It is not meant to send text to a IM conversation window. It is not because the name of that special internal Windows procedure has "Message" in its name that it got something todo with instant messaging.

To block/unblock contacts you must use an instruction in Plus! scripting. The same for sending text to a conversation window. You don't need any Windows API for these things. For blocking a contact you use the Plus! scripting instruction:
  [contact object].Blocked = true or false
For sending a message to a chatwindow:
  [chatwindow object].SendMessage(text)

See the Official Scripting Help (or press F1 while in the scripting editor) for information about these instructions and how to use them.


The "SendMessage" Windows API used by Matty (which should have been the "PostMessage" API) in his example script simply sends a special instruction to a window to instruct it to close.

Info about what Windows APIs are can be found here: http://en.wikipedia.org/wiki/Windows_API

This post was edited on 04-28-2009 at 10:36 PM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
04-28-2009 10:31 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Api Send Message - by xXDarknessXx on 04-28-2009 at 04:57 PM
RE: Api Send Message - by matty on 04-28-2009 at 05:26 PM
RE: Api Send Message - by xXDarknessXx on 04-28-2009 at 05:54 PM
RE: Api Send Message - by matty on 04-28-2009 at 06:03 PM
RE: Api Send Message - by xXDarknessXx on 04-28-2009 at 06:14 PM
RE: Api Send Message - by Mnjul on 04-28-2009 at 06:14 PM
RE: Api Send Message - by matty on 04-28-2009 at 06:28 PM
RE: Api Send Message - by CookieRevised on 04-28-2009 at 10:31 PM
RE: Api Send Message - by xXDarknessXx on 04-29-2009 at 12:49 PM
RE: Api Send Message - by matty on 04-29-2009 at 01:21 PM


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