2

I am writing a game where you need to click a button as many times as you can in 10 seconds. The problem is that it is possible to hold the Enter key down to superspeed the counter.

How can I prevent this? I tried KeyDown Events but it doesn't seem to fire when the key is held down.

Thanks.

2 Answers 2

2

Use the MouseClick event as that only captures clicks by the mouse.

0
1

try handling KeyPress instead of KeyDown.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.