Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: clipboard VB.NET copy
I am trying to copy a message i sent/received in Skype this is the code i am using -
 
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 30-Jan-13 11:23am
Edited 30-Jan-13 11:25am
v2
Comments
dimabal10000 at 30-Jan-13 16:33pm
   
Does no one know how to do this D: ?
Sergey Alexandrovich Kryukov at 30-Jan-13 16:43pm
   
This is because you use clipboard, not read a message...
—SA
dimabal10000 at 30-Jan-13 16:50pm
   
What do you mean?
Sergey Alexandrovich Kryukov at 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 at 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
dimabal10000 at 30-Jan-13 17:46pm
   
Btw i am also Russian :D
Dave Kreskowiak at 30-Jan-13 20:22pm
   
And that means what? You can't read your own code??
 
Look at what you're checking in the IF statement and then look at what you passed in the call to SetText. It's bloody frickin' obvious!
dimabal10000 at 30-Jan-13 20:33pm
   
Exactly i know that it is wrong and it cant work thats why i am here asking for help if you dont know how to do this go on with your life and dont judge me.... If you know this then help me out. Thanks
Sergey Alexandrovich Kryukov at 30-Jan-13 22:49pm
   
You are getting offended by a reasonable criticism. How can you call yourself Russian after that? :-)
And no matter what you cultural background are, you should not be that rude.
 
Essentially, you send the following signal: "Your message is unpleasant to me, so shut up". Don't you understand that's not acceptable? By the way, Dave would not make your mistake; and would solve the problem in no time; yes, I'm pretty much sure...
 
—SA
dimabal10000 at 31-Jan-13 0:18am
   
He wouldnt just like you can't... If he knew how to solve it he would help me out, same thing with you while you are taking your time and unpleasantly criticizing me there are 600 people waiting me to update my program :(
 
If you would please help me out, that would be very helpful.
Sergey Alexandrovich Kryukov at 31-Jan-13 0:40am
   
This is not his fault. Maybe yours?...
If something is unpleasant to you, you should not consider it wrong. By such reaction, you completely close all your ways to any progress.
 
I don't know this API, sorry, but you can easily lookup it by yourself, can you? (Is it https://developer.skype.com/accessories/skype4com?)
 
—SA
dimabal10000 at 31-Jan-13 1:09am
   
:/ i did not just look on the website but also am registered there for a while + have a post with same question.
 
I am not considering your criticizing wrong i am considering it a little too time consuming :P
Sergey Alexandrovich Kryukov at 31-Jan-13 1:14am
   
Time consuming what — out pointless talking? I would agree...
—SA
dimabal10000 at 1-Feb-13 0:15am
   
Erm yea i took a look at that class and stuff and did not find a way to copy a message...
dimabal10000 at 1-Feb-13 0:16am
   
Svoloch ti intelegentnaya a ne Russkiy :/
Sergey Alexandrovich Kryukov at 1-Feb-13 0:21am
   
Now I see...
—SA
dimabal10000 at 1-Feb-13 0:22am
   
Mhhhm...
Sergey Alexandrovich Kryukov at 1-Feb-13 0:27am
   
What, feel no shame? OK...
—SA
dimabal10000 at 1-Feb-13 0:43am
   
nope i feel no shame :)
 
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

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.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

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
  Permalink  

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



Advertise | Privacy | Mobile
Web01 | 2.8.1411022.1 | Last Updated 31 Jan 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100