With UiPath.UIAutomation.Activies 25.10.19 there is a new version of Keyboard Shortcuts.
The older version of Keyboard Shortcuts you could use strings for key combinations: Shortcuts="" ShortcutsArgument="[strYear]" Version="V3">
Is there a way to have a dynamic string in the new version ? Tried same syntax as the old but then it just said: Keyboard Shortcuts: Invalid or empty shortcut sequence.
Or is there any other way to send a dynamic keyboard keys ? ‘Type into’ isnt a option because it needs a target (or..?), i just want to send keyboard keys to whatever is selected.
The new Keyboard Shortcuts (25.10.x) no longer accepts dynamic string shortcuts; it only uses combinations recorded in the activity so expressions like “[strYear]” will always fail with “Invalid or empty shortcut sequence.”
Workaround: use the classic Send Hotkey activity instead, where the Key property can still take a String variable (e.g. strYear) and you can leave the target empty so the hotkey is sent to whatever currently has focus.