Click to See Complete Forum and Search --> : SendKeys Problem


jasonli
July 27th, 2007, 12:04 PM
I am trying to send keys to a webpage from a windows application. I send CTRL-A and CTRL-C for copying, but sometimes the textbox in webpage gets "C" or "A".

The code for copying is like this:
Thread.Sleep(500);
SendKeys.SendWait("^(A)");
SendKeys.SendWait("^(C)");
Thread.Sleep(500);

It happens not very often. But I want a safer way to send. Any idea?