RPA-Blueprism:Global Send Keys输入含'('文本丢失括号问题求助
I’ve run into this exact issue with Blue Prism’s Global Send Keys before—those parentheses are tricky because they’re reserved for modifier keys like (SHIFT) or (CTRL) in the send keys syntax. Here are a few reliable fixes to get your text showing up correctly:
Escape parentheses with curly braces: Wrap each parenthesis in curly braces
{}to tell Blue Prism to treat it as a literal character instead of a modifier command. For your example, replacePaste (Text)with:Paste {(}Text{)}When you run Global Send Keys with this string, it will input the full
Paste (Text)as intended.Use the "Set Text" action instead: If the target field is a standard editable control (like a text box), skip Global Send Keys entirely and use Blue Prism’s "Set Text" action. This method directly injects the text into the field rather than simulating keystrokes, so you can just input the raw string
Paste (Text)without any escaping. This is my go-to solution since it avoids special character issues altogether.Use ASCII code escapes: If curly braces don’t work for your specific application, you can use the ASCII code for each parenthesis. Use
{ASC(40)}for(and{ASC(41)}for). Your string would look like this:Paste {ASC(40)}Text{ASC(41)}This tells Blue Prism to send the exact ASCII character for each parenthesis.
A quick tip: Test these options in your environment—some applications handle send keys differently, so the Set Text method is usually the most robust if the control supports it.
内容的提问来源于stack exchange,提问作者Siddu Kalligudd

