SendKeys.SendWait("^c") not working correctly in private void HookManager_MouseDoubleClick(object sender, MouseEventArgs e)

Jun 7, 2013 at 7:33 AM
Edited Jun 7, 2013 at 7:35 AM
I want to get selected text when I double click text in other application. So, I customize the HookManager_MouseDoubleClick method. But the SendKeys.SendWait("^c") didn't work when putting it in HookManager_MouseDoubleClick method , I didn't get the selected text. With the same way, I customize the http://www.codeproject.com/Articles/7294/Processing-Global-Mouse-and-Keyboard-Hooks-in-C, It works correctly. I don't know the reason why SendKeys.SendWait("^c") doesn't work in this project.Please help me.Thank in advance!

//my code
private void HookManager_MouseDoubleClick(object sender, MouseEventArgs e)
    {
        Clipboard.Clear();
       SendKeys.SendWait("^c");
        Log(string.Format("MouseDoubleClick \t\t {0}\n", Clipboard.GetText()));
    }