private static void OnMouseLeftButtonUp(object sender, MouseEventArgs e) { if ((ModifierKeys & Keys.Control) == Keys.Control) { Thread.Sleep(1500); IntPtr hWnd = GetWindowUnderCursor(); SetForegroundWindow(hWnd); Thread.Sleep(500); //Ctrl + C new InputSimulator().Keyboard. .ModifiedKeyStroke(VirtualKeyCode.CONTROL, VirtualKeyCode.VK_C); Thread.Sleep(500); MessageBox.Show(Clipboard.GetText()); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)