Keep holding on button held
Forum rules
Please read the forum rules before posting for the first time.
The more information you can provide, the quicker and more accurately someone can help.
NOTE: To reduce spam, new users can not post links, files or images until they have at least 4 posts.
Please read the forum rules before posting for the first time.
The more information you can provide, the quicker and more accurately someone can help.
NOTE: To reduce spam, new users can not post links, files or images until they have at least 4 posts.
-
maxoku
- Committed
- Posts: 190
- Joined: Sun Apr 02, 2017 5:21 pm
Keep holding on button held
I have a situation when for a button I need to execute key A then short click it and key B when holding. Problem with button held is that the key B can only be tapped (pressed and released immediately). What I need is the key B would be held as long as I hold the button, releasing it only when I physically stop holding the button. Is something like that possible or be implemented?
-
phil
- Site Admin
- Posts: 7967
- Joined: Sun Apr 06, 2003 11:12 pm
Re: Keep holding on button held
I think you can do this with method 3 (during) and something like...
{OD}a{waitms:50}b
That should press A only when the button is pressed, wait 50ms (the short delay) and then press and hold b until the button is released.
{OD}a{waitms:50}b
That should press A only when the button is pressed, wait 50ms (the short delay) and then press and hold b until the button is released.
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9/G604/M720/MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 11 x64 24H2, AMD Ryzen 9950x3D, MSI x870E Tomahawk, 64GB DDR%,
nVidia RTX 2070s (still lol)
--[ Administrator & XMBC Author ]--
Logitech G9/G604/M720/MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 11 x64 24H2, AMD Ryzen 9950x3D, MSI x870E Tomahawk, 64GB DDR%,
nVidia RTX 2070s (still lol)
-
maxoku
- Committed
- Posts: 190
- Joined: Sun Apr 02, 2017 5:21 pm
Re: Keep holding on button held
Unfortunately it doesn't work. It still press b after short press. I already came up with something familiar, though I used 300 instead of 50. B is still pressed on short click, just delayed. I need B be pressed only when holding the button, not after a short click.phil wrote: Sun Nov 16, 2025 12:15 pm I think you can do this with method 3 (during) and something like...
{OD}a{waitms:50}b
That should press A only when the button is pressed, wait 50ms (the short delay) and then press and hold b until the button is released.
Highrez Forums