The Type field defines the type of behavior for the key combination:
Pulse simulates a brief (temporary) press on the keyboard, even if the button remains activated or in the
“on” position.
Hold simulates pressing and holding the keyboard keys until the button is released.
Press simulates a continuous press on the key combination, even if the joystick button is released.
Release releases a combination of keys that has been “pressed” before.
If you mean making a button do this...
aaaaaaaaaaaaaaaaaaaa
when you hold it down, then you need to use the 'hold' function under 'type' when you set an event.
Cheers, but I am asking for - using this example - a button that holds "a" then releases it, and repeats indefinitely while held.
Given the lack of options I am seeing I doubt it, but I'm hoping there's a trick I am missing.
Try asking here https://forums.eagle.ru/forumdisplay.php?f=96
Doesnt the 'press' function do this??
I can't check right now, butI know it defiitely does it for DX hat events.
Just checked - it's the "hold" function.
...which the hold function can do.a button that holds "a" then releases it, and repeats indefinitely while held.
I'd like to say yes StiTch, but not 100% sure as I haven't done anything quite like that in my script. Closest I have done is a Signal light sequence where it turns your lights on and off again at intervals on a button press. But this doesn't repeat, its just a set number of presses & releases done in a macro.
Setting a hold and release with delay can be done fairly easily with the DeferCall command (set your button to a hold then after 2secs release). You could probably wrap that into an exec (or I think in this case it would be an REXEC command to repeat) to accomplish to repeat while the button is held down. If something like that doesn't work then you might need to go down the path of writing a function to manage the action then use the REXEC to call on it.
AD
RPT (event, ThisManyTimes, Delay)
or
REXEC() Sounds like this is what you want.
Manual explains how to do REXEC. The RPT function was added later, its not in the script manual. Code is near the bottom of target.tmh I believe.