How do I format a string for the methis SendKeys method to emulate Ctrl-C?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • DOSrelic
    New Member
    • Sep 2006
    • 13

    How do I format a string for the methis SendKeys method to emulate Ctrl-C?

    I have read this page
    http://msdn.microsoft.com/en-us/libr...ys(VS.71).aspx but try as I might I cannot figure out how to do it. I tried many combinations but none of them have succeded, as far as I know. I should have had some text now in the ClipBoard with SendKeys.Send(" {^(C)}"); but if I don't get an axception due to System.Argument Exception was unhandled. Message="Keywor d \"^C\" is not valid." then it is still empty. Am I doing it wrong or am I not sending the keys to the right window with the SendKeys.Send(" {^(C)}");? Your help will be invaluable, cheers.

    Thanks & Best Regards
    [DOSrelic]
    ¨`•._.®._.•´¨
Working...