Terminal session Send Keys activities : how to configure key in string

activities
studio
terminal
hotkey

#1

I’m using a connection to iSeries that works perfectly with SendcontrolKey activity.
But, I want to give the key in an argument (in place of harcoding it by choosing the value in a drop down list bok (cfr the picture)
image

I tried different approach with the SendKey activity.
{ENTER}
[k{ENTER}] --> change automatically to %[k{ENTER}] in studio
K[{ENTER}]

Nothing append !

I know that an heavy solution could be to use an enormous switch but I can’t beleive that’s there is not an other solution.

Thank to all for your answer


#2

Hello,
I found the solution in the IBM documentation.
The keystroke must be enclosed between [ ] and must be lowercase.
eg .
[sysreq] for system request
[enter] for enter

Hoping that this post will help some of you.