How can pass variable in Keyboard Shortcuts Modern Activities

Hi Everyone,

I want to use shortcut key in variable in Keyboard Shortcuts Modern activities how can do that.

Here I want to use Enter as variable how can do so

Thanks

Hi @Codeverse,

Could you please share the error message? Ideally, this should work correctly. However, it seems there might be an issue with the target. You may need to re-indicate the target and verification.

Thanks

Hi @Codeverse

You cannot create a shortcut variable in the “Keyboard Shortcuts” activity.

But you can rather use a “Type into” activity, and use “[k(enter)]” as the string to capture. This can be saved as a variable.

The “[k(enter)]” sends a hotkey “Enter”. You can also do other keys like Shift would be “[k(shift)]” or Tab would be “[k(tab)]”.

Let me know if this helps :slight_smile:

thanks @jeevith , that what I was wondering if it possible all the way to use variable in keyboard shortcut activity.