trigger OS to copy (ctrl+v or Ctrl-x) programicly
- by Crash893
I'm working on a program to trigger cut and pastes
Pastes i have no problem with (i just dump a string into the clipboard)
Cut and or Copys are proving to be a little more difficult
The program i have is out of focus and has several hot keys registered with the os ( ctrl+alt+2 ctrl+alt+3 etc)
that i want to use to trigger Windows to copy anything that is highlighted in the window that is focused
I tried doing a sendkeys
SendKeys.Send("^c");
but that seems to work once or twice if at all then stop working.
is there a better way to try to trigger windows into coping highlighted content on a different window