How do I use the SendKeys command?

Ask general questions here.
stapes
Posts: 206
Joined: Wed Sep 16, 2015 10:55 am

How do I use the SendKeys command?

Post by stapes » Mon Oct 05, 2015 10:54 am

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.

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 3930
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: How do I use the SendKeys command?

Post by odklizec » Mon Oct 05, 2015 12:18 pm

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.
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

stapes
Posts: 206
Joined: Wed Sep 16, 2015 10:55 am

Re: How do I use the SendKeys command?

Post by stapes » Mon Oct 05, 2015 12:24 pm

Thank you odklizec - that worked. I had no idea!