0

I have some data in notepad and have performed Sendkeys("Ctrl+C") using keyboard library.I want to get the copied data to a variable in C# code.

How to get the data to variable programmatically.

I tried clipboard.GetText() API and it is giving empty string.

Ka Res
  • 311
  • 2
  • 3
  • 17
NAGASREE
  • 342
  • 4
  • 15

1 Answers1

0

Your could get any data using Clipboard.GetDataObject().

See the example at msdn

J.Althaus
  • 36
  • 1
  • 3