| View previous topic :: View next topic |
| Author |
Message |
urbach1907
Joined: 22 Nov 2007 Posts: 2
|
Posted: 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 |
|
 |
Support Team Site Admin
Joined: 07 Jul 2006 Posts: 256
|
Posted: 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 |
|
 |
urbach1907
Joined: 22 Nov 2007 Posts: 2
|
Posted: 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 |
|
 |
|