cancel
Showing results for 
Search instead for 
Did you mean: 

Global Send Key using Chr

LaurentDELOBEL2
Level 3
Hi,

I would like to write the "%" special character to a web application using global send key. I tried different things using Chr(037) but nothing seems to work. Is it possible to use the Chr function with Global Send Key ?

Many Thanks


------------------------------
Laurent
------------------------------
6 REPLIES 6

Hi Laurent,

Try "{%}" and see if that works. For send keys, you have to enclose % in curly brackets, otherwise it will be interpreted as ALT. 
I find this page to be a helpful reference: https://docs.microsoft.com/en-us/dotnet/api/system.windows.forms.sendkeys?view=netcore-3.1


------------------------------
Patrick Aucoin
Senior Product Consultant
Blue Prism
------------------------------

Hi Laurent

You could also use the escape sendkeys action which will add any special characters into brackets for you and outputs to a data item which you can use in the send keys function. This is good if you are taking values from collections and arent sure if the value will always contain special characters.

------------------------------
Michael ONeil
Technical Lead developer
Everis Consultancy
Europe/London
------------------------------

Thank you Patrick.

But unfortunately for unknown reason it types "5" instead of "%".

------------------------------
Laurent DELOBELLE
------------------------------

Thank you Michael.

But unfortunately like with solution suggested by Patrick for unknown reason it types "5" instead of "%".

------------------------------
Laurent DELOBELLE
------------------------------

SheetalChaudhar
Level 2
Hi,
can you just put "{%}" into the global send keys text field, it worked for me.

------------------------------
Sheetal Chaudhari
------------------------------

Hi,

it seems it is a specific issue with French keyboard. 

https://stackoverflow.com/questions/59251313/sendkeys-sendwait-writes-5-instead-of

------------------------------
Laurent DELOBELLE
------------------------------