09-02-2025, 02:34 AM
(This post was last modified: 09-02-2025, 02:52 AM by PhilOfPerth.)
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?
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.) 
Please visit my Website at: http://oldendayskids.blogspot.com/

Please visit my Website at: http://oldendayskids.blogspot.com/

