Closed GoogleCodeExporter closed 8 years ago
This is because it's sending messages too quickly. There needs to be a small
delay after each SendKey in the SendString loop. Using PostMessage, instead of
SendMessage, may resolve it to.
public void SendString(string s)
{
foreach (var c in s)
{
SendKey(Convert.ToInt32(c));
System.Threading.Thread.Sleep(100);
}
}
Original comment by joebingham07@gmail.com
on 12 Sep 2010 at 7:40
PostMessage is a good idea; this does not need to be synchronous.
Original comment by ian320
on 13 Sep 2010 at 6:09
Fixed in r834. Just needed to send the character message, didn't need to send
key down/up.
Original comment by joebingham07@gmail.com
on 29 Sep 2010 at 6:24
Original issue reported on code.google.com by
sebiw...@gmail.com
on 12 Sep 2010 at 2:04