Delphi Clinic C++Builder Gate Training & Consultancy Delphi Notes Weblog Dr.Bob's Webshop
Bob Swart (aka Drs.Bob) Dr.Bob's Delphi Clinics Dr.Bob's Delphi Courseware Manuals
View Bob Swart's profile on LinkedIn Drs.Bob's Delphi Notes
These are the voyages using Delphi Enterprise (and Architect). Its mission: to explore strange, new worlds. To design and build new applications. To boldly go...
Title:

Sending Skype Chat Messages using Delphi

Author: Bob Swart
Posted: 3/11/2006 5:36:34 PM (GMT+1)
Content:

In this Dr.Bob Examines... article, I'll explain how to use the Skype's API and Chat Command as simple Message Service (from Skype to Skype) - a service which I've been working on for a while.

The article explains how to use the Skype API to start a chat, send a message, and end a chat, combining these commands into a simulated Skype SMS application.
Full source code of this example Skype plug-in application can be downloaded from my Skype Calls section.

If you have any comments, feel free to let me know...

Back  


10 Comments

AuthorPostedComments
Gerhard06/12/04 13:08:28Thanks, this is a very nice example :) Where can i get more commands for the Skype API? e.g. to send a mobile-sms, or deal a phonenumber? br Gerhard
SySTalTic 07/04/29 01:13:17COOL :)
Gautam 10/10/07 21:46:51Needs more skype command to send sms to mobile......plsssssssssssss
Ann L. 11/02/22 04:54:48Hi Bob, I compiled and ran program SkypeSMS in Delphi XE on Windows 7, 64-bit. It gets to procedure TfrmSkype.FormCreate and hangs after (or during) SendMessage. The first two calls come back with non-zero values for WM_SkypeControlAPIDiscover and WM_SkypeControlAPIAttach. Do you have any quick guesses as to what might be needed to make this work? Skype version 5.1.0.112 which is the latest as of now. Thanks for a great article, did not need this earlier but today found a real use for it.
Bob Swart 11/02/22 07:29:48There are several potential issues here. First of all, the Skype units were written before the Unicode string in Delphi (so a few minor changes are needed in these units to send the messages), and second: do you have a 32-bits or 64-bits version of Skype on your machine?
Ann L. 11/02/23 06:21:02Fair enough about UnicodeString. TaskMgr shows Skype.exe *32 and SkypePM.exe *32 so I take that to mean it is the 32-bit version. I would think Delphi XE could only talk to the 32-bit version, yes?
Bob Swart 11/02/23 08:51:36That's the 32-bit edition indeed. So it's only the Unicode migration you need to take care off. I'll post the required modifications later today (only one or two lines if I remember correctly).
Ann L. 11/02/25 12:30:55Hey that would be great. Please confirm the download link whenever you are ready because I'm not too familiar with how your whole site is organized. Many thanks - looking forward to trying it.
Michael V 11/08/08 16:26:43Hi Bob, I have run into the same issue as Ann L. I just downloaded your code today. I'm using Delphi 6, I have Skype *32 and Windows 7. Did you update the Skype units? Can you point me in the right direction, please? Kind regards, Mike
Bob Swart 11/08/31 09:33:34Michael: if you only have Delphi 6, then you do not need any modification of the code at all (since Unicode wasn't introduced until Delphi 2009). The example project should just compile and work fine.


New Comment (max. 2048 characters, no HTML):

Name:
Comment:



This webpage © 2005-2014 by Bob Swart (aka Dr.Bob - www.drbob42.com). All Rights Reserved.