Click here to Skip to main content
15,887,477 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I am trying to copy a message i sent/received in Skype this is the code i am using -

VB
If SKYPE4COMLib.TChatMessageStatus.cmsSent Then
Clipboard.SetText(SKYPE4COMLib.TChatMessageStatus.cmsSent)


But all it does is copies - 1 or a line from my code

Please help me

Thanks
Posted
Updated 30-Jan-13 10:25am
v2
Comments
dimabal10000 30-Jan-13 16:33pm    
Does no one know how to do this D: ?
Sergey Alexandrovich Kryukov 30-Jan-13 16:43pm    
This is because you use clipboard, not read a message...
—SA
dimabal10000 30-Jan-13 16:50pm    
What do you mean?
Sergey Alexandrovich Kryukov 30-Jan-13 17:00pm    
I mean that you explicitly use the Clipboard method (unrelated to Skype) and express surprise that it "all it does is copies". Doesn't to look strange? What else would you expect?
Or you still want a clipboard copy, but of something else? Then you question looks ambiguous...
—SA
dimabal10000 30-Jan-13 17:45pm    
You are a bit confusing... Look this is what i am trying to do ---->
If i receive a message from any of my contacts for instance echo123 THEN
With a click of a button it will connect to my Skype, in a combobox i will select a person, then it will go to the chat and will copy the last message i received to my clipboard

The expression SKYPE4COMLib.TChatMessageStatus.cmsSent is a boolean, so it returns true or false. You need to copy the actual message content from wherever you have saved it.
 
Share this answer
 
I found:
https://developer.skype.com/accessories/skype4com[^].

It has the class ChatMessage with the implemented interface IChatMessage. As I can see, this class and interface represent the message, nothing else. And it has the member BSTR Body which you probably need.

Do with this message body whatever you need.

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900