SendKeys

Class library usage, coding and language questions.
Behdad95
Posts: 5
Joined: Wed Nov 14, 2012 3:19 am

SendKeys

Post by Behdad95 » Fri Jan 18, 2013 2:09 am

Hello,

I am trying use the Sendkeys method but I don't see it using intellisense.

I can see that it is meant to be under Ranorex.Control but I don't seem to get many methods when coding:

http://www.ranorex.com/Documentation/Ne ... ontrol.htm

The Ranorex.Control only offers 5 methods.

Thanks.
Behdad.

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: SendKeys

Post by Support Team » Fri Jan 18, 2013 10:01 pm

You referenced the documentation for Ranorex 1.X, but you obviously use Ranorex 2.X or higher. Ranorex and its API changed fundamentally from 1.X to 2.X.

In order to send key input to controls, please use the Keyboard class, specifically the Keyboard.Press method:
http://www.ranorex.com/Documentation/Ra ... ress_8.htm

Regards,
Alex
Ranorex Team
.
Image