Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Stopping repeated mouse-key press
#1
I'm trying to get a mouse key (left-mouse) to only return its result once.
I've tried using  While _KeyHit <> 0: _Delay .2: Wend but it still repeats (sometimes).
I've also played around with _mousebutton, with no effect.What's the simplest way to make it wait until the key has been released?
Edit: I'm trying this at present, and it seems to work:
Do '
i = _MouseInput
Loop Until Not _MouseButton(1)

is there a better way, and is there a reason not to use this?
Of all the places on Earth, and all the planets in the Universe, I'd rather live here (Perth, Western Australia.) Big Grin
Please visit my Website at: http://oldendayskids.blogspot.com/
Reply


Messages In This Thread
Stopping repeated mouse-key press - by PhilOfPerth - 09-02-2025, 02:34 AM
RE: Stopping repeated mouse-key press - by Pete - 09-02-2025, 11:28 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Any other way to ignore the Alt key using the INKEY method? Pete 24 1,384 12-31-2025, 05:24 PM
Last Post: Pete
  Setting mouse to ignore outside of _NewImage PhilOfPerth 11 710 12-18-2025, 07:20 PM
Last Post: Pete
  Do Loop, Sleep and Mouse Button Dimster 5 576 09-06-2025, 12:57 PM
Last Post: Dimster
  Stopping _SNDPLAYCOPY ?Possible? TerryRitchie 13 2,426 08-08-2024, 01:48 AM
Last Post: TerryRitchie
  Repeating mouse check PhilOfPerth 4 914 07-24-2024, 11:26 PM
Last Post: PhilOfPerth

Forum Jump:


Users browsing this thread: 1 Guest(s)