Form.Sendkey

Bug reports.
arishahsan
Posts: 26
Joined: Thu Jan 18, 2007 12:04 pm

Form.Sendkey

Post by arishahsan » Sat Apr 28, 2007 3:29 pm

i have observed that Form.Sendkeys fails some times
can u tell me what could be the resion of it?The code is as following

Form myForm = Application.FindFormTitile("myform.text");
myform.Activate();
myform.sendkey("^f");

admin
Site Admin
Site Admin
Posts: 350
Joined: Wed Jul 05, 2006 7:44 pm

Post by admin » Sun Apr 29, 2007 7:05 pm

The tested application runs in another process space. If you send two commands, it can happen that the first one needs some time and the second command failes. In such cases you should send the second command after the first already finished or you should wait a little bit if you cannot check it.

Jenö
Ranorex Team