I have a program that I'm working on that register global hotkeys
I would like to use that ability to trigger highlighted text or data to be copied to the clipboard and then read from the clipboard into a variable in my program
which i will later use in reverse to paste it back out.
(example ctrl+1 copys to quque #1 and alt+1 pasts what is in quque 1)
thanks so much.
You mean... like this?
Clipboard.SetText("whatever");
...or are you talking about copying text from any arbitrary window in another application? The latter is not trivial at all.
SendKeys.Send("^c");
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With