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
)....
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