QIP Home QIP Forum

Go Back   QIP Forum > English > Plugins and tools > Infium Plugin API

Infium Plugin API Developing your own QIP plugins.

Reply
 
Thread Tools Display Modes
Old 25.08.2008, 18:11   #1
darkdonald
QIP Newcomer
 
Join Date: 08/2008
Posts: 2
Default Send IM with API

Hello!

I like to send IM with my plugin. I send the contact-data (Receiver-Account & Text) from an external tool to my QIP-Plugin. The data is already in my plugin, but I can't make it to send...

I've tried alot with "PM_PLUGIN_SEND_IM" but I only get error messages... And nothing is sent...

How can I use this feature?

Hope, somebody could help me out...

Thx in advance
DarkDonald
darkdonald вне форума   Reply With Quote
Old 25.08.2008, 19:45   #2
Dr.Boom
QIP Elder
 
Dr.Boom's Avatar
 
Join Date: 06/2007
Posts: 1,558
Default

May be you send this after receiving PM_PLUGIN_MSG_RCVD? Can you show or attach source?

добавлено через 1 минуту
What SDK version do you use?

Last edited by Dr.Boom; 25.08.2008 at 19:45. Reason: Добавлено сообщение
Dr.Boom вне форума   Reply With Quote
Old 25.08.2008, 22:29   #3
darkdonald
QIP Newcomer
 
Join Date: 08/2008
Posts: 2
Default

Quote:
May be you send this after receiving PM_PLUGIN_MSG_RCVD?
Yes and No...^^ When a new message arrives, I send it to with a MemoryMappedFile to another program, which displays the message on a lcd-display. After that I can select a (predefined) answer on the lcd on send it back to the Qip-Plugin. Now the plugin should send the answer...

And yes, I use PM_PLUGIN_MSG_RCVD for the (first) incoming message...

I use SDK 1.5.0


Code for receiving messages:
Code:
procedure TQipPlugin.InstantMsgRcvd(var PlugMsg: TPluginMessage);
var aQipMsg      : pQipMsgPlugin;
begin
  aQipMsg := pQipMsgPlugin(PlugMsg.WParam);

  if (aQipMsg^.MsgType = MSG_TYPE_TEXT) then
    G15DataSend (aQipMsg^.SenderNick, aQipMsg^.SenderAcc, aQipMsg^.MsgText);
end;

From my LCD-Tool I get the Answer-Text and the Account-Nr
darkdonald вне форума   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +4. The time now is 15:05.


Powered by vBulletin.
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
©2004 - 2012 QIP.RU