Can you try and use a ‘Get Text’ activity on the text box? If correctly, it should return the entire text in the text box. Then you can continue with Regex Matches to find the value of CLIENTKEY, to find if it’s -1. Then if it is, you can replace the text you retrieved from the text box, and paste it back in. In short it will be like this:
Use ‘Get Text’ on the text box, name the output string: textboxOutput
Use ‘Matches’ activity on the output string, in “pattern” put “(?<=CLIENTKEY=)-?1”, set output variable to clientkey
Use ‘Assign’ to get the value: clientkeyvalue = clientkey(0).ToString
If clientkeyvalue = “-1”, then use Assign as follows: textboxOutput = textboxOutput.Replace(“CLIENTKEY=-1”,“CLIENTKEY=1”)
Finally: use type into (with “Empty Field” selected) to type back the textboxOutput