When I run the recording in the “type into input” I insert the value [k (enter)]:
When I run the registration I obtain an incorrect behavior:
Dave Burns September 28, 2016 17:53
You need to enter “1234” + “[k(enter)]”
This should work for you
Andrzej.Kniola September 28, 2016 17:59
Both should work, it’s just a static text conversion of the final expression (string).
Reason of it not working might be the method - special keys [k(keycode)] don’t work with SimulateType method.
By the way - if you’ll need to type the actual [ character with either default or WIndowMessages method, you’ll need to escape it (use [[, similar to slash escaping in C#), otherwise it will cut the string on this character.
Gianluca Alghisi September 28, 2016 18:17
I try this method:
“1234” + “[k(enter)]” → KO
“1234” + “[[k(enter)]]” → KO
“1234[[k(enter)]]” → KO
“1234” + [k(enter)] → Compiler Error
Andrzej.Kniola September 28, 2016 18:22
You might want to reread on InputMethods:
PS. The double bracket escaping ( [[ ) is only needed if you don’t want to use a special key, like enter or tab, but want the robot to type the actual bracket [ character in the text.
Gianluca Alghisi September 28, 2016 18:45
Correct. Now it works.
In the properties unflag SimulateType and flag Activate:
thank you very much