Ctrl Key getting stuck

Bug reports.
j.early
Posts: 32
Joined: Fri Jun 15, 2012 12:14 pm

Ctrl Key getting stuck

Post by j.early » Mon Sep 03, 2012 3:09 pm

I am running a script that requires the use of a Left Ctrl + Left Shift and Left mouse click keys

Once this runs, the script fails (expected at this time) but the Ctrl key seems to be stuck. If I click on 2 or more items they are selected or if I click on the Ranorex icon on the task bar, it starts another instance of ranorex.

I have already tried commenting out the line below
// Keyboard.AbortKey = System.Windows.Forms.Keys.F1;

which has made no difference

Vr 3.3.1 on Win7 64bit

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

Re: Ctrl Key getting stuck

Post by odklizec » Mon Sep 03, 2012 3:33 pm

Hi,

I experienced this problem too. I guess you are using "Key Sequence" command in your test script? And if I'm not mistaken, your recorded key sequence is something like {LControlKey down}{LShiftKey}? Because there is never performed {LControlKey up}, the Ctrl key gets stuck ;)

Just replace the Key Sequence with Key Shortcut command and record your desired key shortcut (or simply use this key sequence Ctrl+Shift+LShiftKey). Hope this helps?
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

j.early
Posts: 32
Joined: Fri Jun 15, 2012 12:14 pm

Re: Ctrl Key getting stuck

Post by j.early » Mon Sep 03, 2012 4:01 pm

that seems to have done thanks very much fella,

another quick one is how can I combine the Key short cuts with a left mouse click. It doesn't register the click for some reason and am baffled

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

Re: Ctrl Key getting stuck

Post by Support Team » Mon Sep 03, 2012 4:28 pm

Hi,

In my case it worked as expected, I recorded the following actions:
Key Sequence: {LControlKey down}{LShiftKey down}
Mouse: Click
Key Sequence: {LControlKey up}{LShiftKey up}
,which Ranorex version are you using, the actual 3.3.2?

Regards,
Markus
Ranorex Support Team
.
Image

j.early
Posts: 32
Joined: Fri Jun 15, 2012 12:14 pm

Re: Ctrl Key getting stuck

Post by j.early » Mon Sep 03, 2012 4:36 pm

using 3.3.1 at the moment. Didn't notice there was a x.x.2 release.

Ill update and see what the difference is