Skip to content

Issue repeating a sequence of output keys with virtual key #327

@Kalessan

Description

@Kalessan

Hello,

I have a usecase where I need to execute a sequence indefinitely until a key is pressed. I have no issue having a virtual key do that for a single output key. But as soon as I have a virtual key output several keys, it only plays the sequence once

Working:

ButtonForward >> Virtual1
Virtual1 >> B

Outputs: bbbbbbbbbbbbbbbbbbbbb...

Not Working:

ButtonForward >> Virtual1
Virtual1 >> B C

Outputs: bc

I've also tried using repeat, but it can only repeat it a set amount of time, and can't be interrupted

ButtonForward >> Virtual1
Virtual1 >> repeat[B C, 10]

Outputs: bcbcbcbcbcbcbcbcbcbc

The above were just simple examples. My actual usecase would be to have the arrowUp key pressed for 4 sec, then released for 250ms and pressed again for 4 sec, and so on, indefinitely, with the ability to break the loop with a specific key (ideally, the one used to trigger the sequence in the first place).

I first had this in mind:

ButtonForward{500ms} >> Virtual2
Virtual2 >> ArrowUp{4000ms} 250ms
Virtual2 ButtonForward >> !Virtual2

But as expected, it only triggers the sequence once

I've also tried with several virtual keys calling each other back, and it did looped the sequence, but also blocked every other imput, and leaving me with no choice but to shutdown keymapper with Shift + Escape + K

Is that kind of behaviour achievable in the current version of keymapper, or would it need being implemented first?
If it matters, I'm on Linux Mint, with X11

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions