Click here to Skip to main content
11,790,366 members (61,923 online)
Rate this: bad
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

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

Please help me

Posted 30-Jan-13 10:23am
Edited 30-Jan-13 10:25am
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...
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...
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...

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

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...
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...
dimabal10000 at 1-Feb-13 0:22am
Sergey Alexandrovich Kryukov at 1-Feb-13 0:27am
What, feel no shame? OK...
dimabal10000 at 1-Feb-13 0:43am
nope i feel no shame :)

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

Solution 3

I found:[^].

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.


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

  Print Answers RSS
0 OriginalGriff 315
1 ppolymorphe 219
2 Richard MacCutchan 158
3 Jochen Arndt 95
4 Maciej Los 90
0 OriginalGriff 1,114
1 Maciej Los 825
2 KrunalRohit 686
3 CPallini 611
4 ppolymorphe 610

Advertise | Privacy | Mobile
Web04 | 2.8.1509028.1 | Last Updated 31 Jan 2013
Copyright © CodeProject, 1999-2015
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