input-remapper icon indicating copy to clipboard operation
input-remapper copied to clipboard

Add the ability to bind seperate keys/macros from when a key is pressed and released

Open chikenpotpi opened this issue 4 months ago • 3 comments

I have a use case where I want right click to be sent when I press and release a key. Currently this doesn't seem possible. Could just be advanced option to separate key press and release into separate entries.

Image

chikenpotpi avatar Aug 30 '25 12:08 chikenpotpi

I've not seen a pipe used in an Input-Remapper macro before, so forgive me if this is above my ability to comment on.

It appears what you are asking the key to do is achieved by the code on this page in the second section down:

https://github.com/sezanzeb/input-remapper/blob/main/readme/macros.md

However, I tried this on a device of mine and it did not seem to work; the macro output was odd: key_down(KEY_A).key_up(KEY_B)

  1. the macro did not output anything on the initial press of the key.
  2. after pressing another key then pressing the macro'd key once, it output an "a", followed by infinite "a" untill I pressed any other key, where upon it would stop.
  3. pressing the macro key again would not output anything.

Needless to say, I have never been able to get this key-up key-down macro to work on my Delux T9 so I don't know how to advise you.

TherinS avatar Sep 08 '25 00:09 TherinS

key_down actually has nothing to do with the pressed state of the macro key, key_down just sends a pressed input of whatever key you want.

chikenpotpi avatar Sep 09 '25 08:09 chikenpotpi

I see how the macro is SUPPOSED to work; however, it acts not at all how it is supposed to. I tried this same macro that I listed above on my Razer Orbweaver with similar results. Does the macro work for you? Does it output an 'A' when the key is presssed, then a 'B' when the key is released? If there is an effective syntax for this function, I would like to know it.

TherinS avatar Sep 12 '25 01:09 TherinS