Request: holding key down

What features you would like to have in HIDmacros?
Post Reply
Wesha
Posts: 1
Joined: 03 Apr 2011, 01:21

Request: holding key down

Post by Wesha » 03 Apr 2011, 01:25

I have a foot pedal that is a HID "keyboard". hidmacros works perfectly with it except for one little thing...

What I need is for that pedal (that is equiavalent to key "1" on the keyboard) to be completely remapped to another key on the keyboard (say, "W"). By "completely", I mean that I don't want it to *activate* a macro; when I press the pedal and hold it down, I want Windows to believe that I pressed and am holding down "W" key on the keyboard.

Think it is possible?

admin
Site Admin
Posts: 604
Joined: 01 Nov 2010, 13:00
Location: Prague, Czech republic
Contact:

Re: Request: holding key down

Post by admin » 04 Apr 2011, 08:33

Currently it's not possible. For keyboard you can define macro only on key press.
For game device buutons (joystick, gamepad) you can define different macro for up and down event, but anyway there's no script command to send only key down or key up message.
So I keep it as feature request which may be added in the future...
Petr Medek
LUAmacros author

AnnaV
Posts: 8
Joined: 17 Jan 2019, 20:41

Re: Request: holding key down

Post by AnnaV » 19 Jan 2019, 01:05

I'd like to second this request. On multiple occasions I'd need to hold down a key, currently only possible to send single keys.
(The game I'm playing distinguishes between different functions via single key, or long-press. For example tapping "n" brings down landing gear, but holding down "n" activates auto-land feature.) I'm trying to map this functionality to a game device (Thrustmaster MFD Cougar) and at least I don't think this is currently possible.

admin
Site Admin
Posts: 604
Joined: 01 Nov 2010, 13:00
Location: Prague, Czech republic
Contact:

Re: Request: holding key down

Post by admin » 21 Jan 2019, 09:35

This is now possible in luamacros, using lmc_send_input you can send only key press or key release.
But for luamacros you need to deal with lua scripting.
Petr Medek
LUAmacros author

Post Reply