Page 1 of 1

How do I use the SendKeys command?

Posted: Mon Oct 05, 2015 10:54 am
by stapes
I have read this:

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

It does not really give me a clue how to use this function.

These pages might make more sense if some code examples were included.

How am i meant to use this? What kind of Control can it be used on?

So far, all I am getting is compile errors.

Re: How do I use the SendKeys command?

Posted: Mon Oct 05, 2015 12:18 pm
by odklizec
Hi,

My I ask you why you are trying to use coded way for so many actions? I mean, a lot of things you are trying to achieve by code are doable by using simple Recording actions, which could be either recorded or added manually. Additionally, you can always examine code behind each action (press Ctrl+Enter while the action is selected in Recording table) so you can easily learn how to code such actions.

Don't take me wrong. My intention is not to discourage you from using code. But in case you are just starting with Ranorex, it's definitely better to stick with recording modules and learn things step by step. Additionally, the usage of many methods you are asking for has already been discussed at this forum. You can find many examples by searching the forum.

Re: How do I use the SendKeys command?

Posted: Mon Oct 05, 2015 12:24 pm
by stapes
Thank you odklizec - that worked. I had no idea!