Global Send Key using Chr
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
20-10-20 05:54 PM
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
------------------------------
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
20-10-20 07:58 PM
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
------------------------------
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
------------------------------
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
21-10-20 10:10 AM
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
------------------------------
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
------------------------------
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
21-10-20 10:15 PM
Thank you Patrick.
But unfortunately for unknown reason it types "5" instead of "%".
------------------------------
Laurent DELOBELLE
------------------------------
But unfortunately for unknown reason it types "5" instead of "%".
------------------------------
Laurent DELOBELLE
------------------------------
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
21-10-20 10:22 PM
Thank you Michael.
But unfortunately like with solution suggested by Patrick for unknown reason it types "5" instead of "%".
------------------------------
Laurent DELOBELLE
------------------------------
But unfortunately like with solution suggested by Patrick for unknown reason it types "5" instead of "%".
------------------------------
Laurent DELOBELLE
------------------------------
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
22-10-20 10:49 AM
Hi,
can you just put "{%}" into the global send keys text field, it worked for me.
------------------------------
Sheetal Chaudhari
------------------------------
can you just put "{%}" into the global send keys text field, it worked for me.
------------------------------
Sheetal Chaudhari
------------------------------
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
22-10-20 04:41 PM
Hi,
it seems it is a specific issue with French keyboard.
https://stackoverflow.com/questions/59251313/sendkeys-sendwait-writes-5-instead-of
------------------------------
Laurent DELOBELLE
------------------------------
it seems it is a specific issue with French keyboard.
https://stackoverflow.com/questions/59251313/sendkeys-sendwait-writes-5-instead-of
------------------------------
Laurent DELOBELLE
------------------------------
