Can you press and release a key repeatedly?
I'm trying to replicate this script I had in AutoHotkey that did this to Z if you held LCtrl (I need it to avoid mashing the button in some games)
I've tried reading the manual, but apart from macros (?), I found nothing that would let me hold keys, or make them be held or released (maybe I overlooked something). I'm asking because games would ignore a lot of presses without actually holding the key for a while, as I've discovered with another key remapper.
No, I don't think that is currently possible. Would a global option to set the time between keydown/keyup of keypresses in a macro be sufficient for your use case?
(For future reference, this sounds like a problem similar to #732)
Ideally it would be nice to set separate lengths for key down and key up, but one time setting is okay too
It's not clear how this differs from the behaviour of macro2. What is wrong with something like leftcontrol = macro2(50, 100, z)?
I'm tentatively closing this to reduce noise in the issue tracker, but feel free to reopen it if I have misunderstood something.
It's not clear how this differs from the behaviour of
macro2. What is wrong with something likeleftcontrol = macro2(50, 100, z)?
This line makes the key get pressed and released instantaneously, so the presses barely get registered by the game. What I'm looking for is setting up the whole cycle of the key getting pressed, held for some time, and released, can keyd do that? I haven't checked the docs in ages, but iirc I couldn't find anything like that.
You can do something like this leftcontrol = macro(z+300ms 300ms z+300ms 300ms z+300ms).
It is also theoretically possible to do this leftcontrol = macro2(100, 300, macro(z+300ms)) for an infinite repeat, but there is currently a bug which prevents this from working (patch pending).