Z
Z
Zorgios2021-09-05 05:03:38
C++ / C#
Zorgios, 2021-09-05 05:03:38

How to emulate multiple button clicks?

How can I catch in the background the pressing of a specific key on the keyboard, for example, F
And emulate the frequent repeated pressing of this key while it is pressed?
Roughly speaking, so that when the button is held, "spam" clicks on this button (pressed / released until the key is released)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
thatguy1, 2021-09-05
@thatguy1

Looks like an XY problem.
If the key is pressed, then it is pressed and nothing needs to be emulated. It is necessary to separate the key being pressed (check the duration of the key being pressed) and pressing it once (less than this duration). With the key pressed, do what you want to emulate there.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question