New Keyboard Shortcuts No Dynamic String Usuage

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.

hi, @Mr.R0bot

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.

Hi @Mr.R0bot

Modern activity does not support you can use classic or
You can use type into activity

  1. Wrap automation in Use Application/Browser
  2. Make sure the correct window is active
  3. Use Type Into
    Target → Application instance (not a UI element)
    ClickBeforeTyping = False
    EmptyField = False
    Text → dynamic keys

Cheers

Hi @Mr.R0bot,

use Type Into without a selector, make sure the correct field already has focus, and set ClickBeforeTyping to False.

Worked like a charm! Thanks!

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.