I have a form that is TopMost = true
, which has a button. I want that when I click on the text field in another application and click on the button it sends an 'example' text to the control that has cursor focus.
but I was only able to do this with the onHover event that doesn't take the focus off the component
private void button1_MouseHover(object sender, EventArgs e)
{
SendKeys.Send("test");
}
is there any way for me to click the button to set the text on the control that has focus? similar to windows Win+V