I’ve been searching everywhere, but I just can’t seem to figure out how to disable Special Keys in the Type Into activity in UiPath. As a newcomer to UiPath, I find it quite challenging.
The issue I’m facing is that I need to type text into applications using the Type Into activity, and sometimes the text contains Special Keys, as it comes from random variables. These Special Keys are causing errors, and I want to prevent them from being treated as special characters during the typing process.
Could someone kindly guide me on how to disable Special Keys in the Type Into activity? Your help would be greatly appreciated.
In UiPath, the Type Into activity allows you to disable the sending of special keys to the application. To prevent special keys from being treated as special characters during the typing process, you can set the SimulateType and SendWindowMessages properties of the Type Into activity to “True”. This will make the Type Into activity use hardware events to simulate typing, and special keys won’t be interpreted as special characters.
In the Properties panel of the “Type Into” activity, click on the “SendWindowMessages” field to toggle it to True . This property allows UiPath to use Windows messages to simulate typing, which can help to avoid issues with special keys.
I’m using Modern Mode, so I’ve set my Type Into’ Input mode to Windows Messages.
The problem is that this method seems rather slow, there is a site where it does not seem to write, then above all, despite that… it does not work… :
“Type Into ‘Var’: Special key syntax error. An invalid special key action has been encountered at text position: 10.”
Here’s the variable it’s supposed to Type Into: “ay#R94v{[v_8!6tC5r9wJ}3%FAW5Df”
Here’s my exact problem: it’s to write in a form on a website on Chrome, and so I need to write this Variable in Value, then rewrite it in Confirm Value just below it.
The problem is actually quite bizarre, because the first Type Into works fine, but on the second Type Into, for Confirm Value, I get the error (“Type Into ‘Var’: Special key syntax error. An invalid special key action has been encountered at text position: 10.”)…
I’ve tried Windows Messages, Simulate, ChromeAPI…
Since it’s a password @rlgandu, I’ve tried using SecureStrings with a secure TypeInto, but the error remains…
And if I do your method @vrdabberu, I simply get the error at the first Value and not at Confirm Value (Simulate, ChromeAPI, Hardware or Windows Messages)…
In the end, I didn’t have any other similar cases, but I didn’t really find a solution either…
Indeed, maybe “Set text” would have worked better, but there you go… I didn’t have another similar case so…
Thanks all the same