Here is a working example. Note that if the receiver is not online that that message status will be "Sending" if the receiver is online the status will show "Sent".
You can clear the message by using the "Reset" button to enter a new Skype name and/or message.
NOTE: This example uses the Skype4com interface, and you need to use these examples locally on your system, not hosted on a web page on a web server to do testing:
The working examples are here, one is hosted by me, the other is the same HTML in zip file format:
http://testing.OnlyTheRightAnswers.com/Message.htm
http://testing.OnlyTheRightAnswers.com/Message.zip
You MUST manually download this Skype4com.dll FIRST, to use these examples :
https://developer.skype.com/Docs/Skype4COM