Using variable for "Key" in Send HotKey activity

Is there any way in which we can use a variable for the “Key” option in Send HotKey activity?
eg: Send HotKey could be set to ALT + strKey with value of strKey=“OS”

strKey should be defined as a variable and the value for this key should be populated at run time.

After trying the above option the characters in the variable name ie ‘s t r…’ are considered as the key value by UiPath. Instead the value of variable “OS” should be used as the key. How to implement this?

1 Like

Did you Try “TypeInto” Activity.

1 Like

This requirement is for a DOS based application for selection of different Menu’s based on program logic.

Try this

variableHotKey.xaml (6.1 KB)



1 Like

I’m using to store my variable into Set To Clipboard activity.
So I can invoke my variable with Send Hotkey when I have check mark on Ctrl and for key V.

1 Like

I was able to enter the variable directly into the ‘Key’ field. Just make sure, in the properties, that the quotes are removed. The variable only displays in the properties, not directly on the activity