cancel
Showing results for 
Search instead for 
Did you mean: 

Re:Check for caps lock keys pressed

GauravDhiman
Level 5
Hi Developers,
Is there any method to verify if "Caps Lock" is pressed on the resource keyboard,
I just encountered this problem when process page came to "Enter Credential stage".there are global send keys to press or depress the caps lock but in both cases verification is required if Caps Lock Is pressed I suppose.

Regards

Gaurav
6644.jpg
.

------------------------------
Gaurav Dhiman
------------------------------
Gaurav Dhiman RPA developer,ROM Architect Melbourne,VIC,Australia 0413 930 960
3 REPLIES 3

ManojDhamrala
Level 5
Hi Gaurav,

You can spy that message. Use wait stage to identify it, then you can perform the related actions based on the output of wait stage.

But specifically there are no inbuilt actions to verify your problem.

------------------------------
Manoj Dhamrala
------------------------------

Thanks Manoj

------------------------------
Gaurav Dhiman
------------------------------
Gaurav Dhiman RPA developer,ROM Architect Melbourne,VIC,Australia 0413 930 960

Anonymous
Not applicable
Hi, you can try to use the code like this (it perfectly works for Ctrl key):


if (Keyboard.IsKeyDown(Key.LeftCtrl) || Keyboard.IsKeyDown(Key.RightCtrl))
{
// some code
}
else
{
// some code
}

------------------------------
Anton Sauchyk
Senior RPA Analyst
EY
Europe/Minsk
------------------------------