Ranorex

Get ClipboardText over recorded shortcut cmd+C

 
Post new topic   Reply to topic    Ranorex Forum Index -> General Questions
View previous topic :: View next topic  
Author Message
urbach1907



Joined: 22 Nov 2007
Posts: 2

PostPosted: Thu Nov 22, 2007 10:24 am    Post subject: Get ClipboardText over recorded shortcut cmd+C
Hi folks,

In a tested application I want store a marked text with a shortcut to the clipboard. When I try to get this back in .NET via Clipboard.GetText(); it didn't give back the copied string.

Regards,
Frank
Back to top
View user's profile Send private message
Support Team
Site Admin


Joined: 07 Jul 2006
Posts: 256

PostPosted: Thu Nov 22, 2007 1:38 pm    Post subject:
I just tried to copy a portion of text from the Windows Notepad by sending the key combination "Ctrl + C":
Code: click into code to enlarge
Application.SendKeys("{CTRLDOWN}c{CTRLUP}{CTRLDOWN}v{CTRLUP}");
string clipboardText= System.Windows.Forms.Clipboard.GetText();

That worked for me.

Can you please provide us your test code, perhaps we can reproduce the error that way.

Regards,

Alex
Ranorex Support Team
Back to top
View user's profile Send private message Visit poster's website
urbach1907



Joined: 22 Nov 2007
Posts: 2

PostPosted: Sat Nov 24, 2007 7:48 pm    Post subject:
Thanks for your reply. I had some trouble with the right shortcut for marking the text. I solved this and now it works.
Cool tool!

Frank
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Ranorex Forum Index -> General Questions All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum