Sending Keys not working.

Class library usage, coding and language questions.
selvakumar
Posts: 1
Joined: Thu Apr 21, 2016 5:34 pm

Sending Keys not working.

Post by selvakumar » Thu Apr 21, 2016 5:41 pm

Hi Ranorex team,
While i am trying to send keys using method : PressKeys()
Combination of keys like
1.Ctrl + Shift + 1, (likewise all numeric values.)
2.Ctrl + A,
3.Ctrl + C,
4.Ctrl + V

I am sending the above combination of keys like :
{ControlKey down}{shift down}{D1}{shift up}{ControlKey up}
{ControlKey down}A{ControlKey up}

I tried with all possibilities.none of them are working.

Note: But shorcut like Shift + F4 are working well..

How????

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

Re: Sending Keys not working.

Post by odklizec » Fri Apr 22, 2016 8:38 am

Hi,

Why don't you use Key Shortcut action (Keyboard.Press() method) instead? It's more suitable for sending shortcuts than Key Sequence action (PressKeys() method).
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