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
Get ClipboardText over recorded shortcut cmd+C
-
- Posts: 2
- Joined: Thu Nov 22, 2007 8:23 am
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
I just tried to copy a portion of text from the Windows Notepad by sending the key combination "Ctrl + C":
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
Code: Select all
Application.SendKeys("{CTRLDOWN}c{CTRLUP}{CTRLDOWN}v{CTRLUP}");
string clipboardText= System.Windows.Forms.Clipboard.GetText();
Can you please provide us your test code, perhaps we can reproduce the error that way.
Regards,
Alex
Ranorex Support Team
-
- Posts: 2
- Joined: Thu Nov 22, 2007 8:23 am