Page 1 of 1

Turning off caps lock

Posted: Fri Mar 15, 2019 6:40 pm
by cpalex
I have an odd case, where it is common in our system to have caps lock on. Ranorex doesn't care when it runs, it just types the exact letters as you set them, but I've run into a case where the tooltip that warns you the caps lock is on when entering your password, won't go away if Ranorex launches the app.

The easiest solution would be to just set caps lock to Off at the beginning of the test execution, but I cannot find any information on how to do this, user code or otherwise.

Anyone know how to set caps lock to OFF?

Re: Turning off caps lock

Posted: Tue Mar 19, 2019 3:39 pm
by manish
Hi,

You can create a module that runs before the start of your test and turns off the Capslock or you can start your testcase with it.
Try executing

Code: Select all

Keyboard.Press(System.Windows.Forms.Keys.CapsLock);

to turn caps lock off it was enabled.

Hope it helps

Cheers
Manish