I run the problem using the C # SendKeys.Send method. I am trying to replace keyboard keys with other keys, for example, when I press "a" on the keyboard, I want this key to be "s", for example, when I do this in my code:
if ((Keys)keyCode== Keys.A)
{
SendKeys.Send("s");
}
Right now I get only the “sa” character typed in my notebook, but instead of typing “sa”, I need to get only the “s” character in this case, because when I press “a” on my keyboard, there should be replaced by "s".
I tried to remove the last character by adding this line:
SendKeys.Send("{BS}");
But all I have is the symbol "s", and there was the symbol "a".
How can I prevent this?
milot