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?

Typing on validated text box

Did you Try “TypeInto” Activity.


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)