05-02-2022, 06:17 PM
(05-02-2022, 05:10 PM)bplus Wrote: You could have a loop wait until the _mousebutton(1) is false but that is complicated but more accurate!
I'm a fan of Steve's MBS routine for mouse ops, which sets a function value for specific mouse use. When I check for a mouse click in the code, I immediately clear its cue by calling the following SUB, with the button number to be cleared, then go to the mouse click processing. I haven't had any click through events since I started doing that.
Code: (Select All)
SUB Clear_MB (var AS INTEGER)
DO UNTIL NOT _MOUSEBUTTON(var)
WHILE _MOUSEINPUT: WEND
LOOP
END SUB 'Clear_MB
DO: LOOP: DO: LOOP
sha_na_na_na_na_na_na_na_na_na:
sha_na_na_na_na_na_na_na_na_na: