12-06-2022, 01:39 AM
(11-22-2022, 02:00 AM)SMcNeill Wrote: @Pete If you're going that complex, use MBS: https://qb64phoenix.com/forum/showthread.php?tid=138
MBS pretty much does everything I need a mouse to do, and more that I haven't quite figured out yet. I haven't done any "hold and release" type stuff.
Once I've grabbed a mouse button event, the very first step in processing it is to clear the buffer with:
Code: (Select All)
SUB Clear_MB (var AS INTEGER)
DO UNTIL NOT _MOUSEBUTTON(var)
WHILE _MOUSEINPUT: WEND
LOOP
END SUB 'Clear_MB
A bit loopy for a solution, but so far, I've had no more click through events.
DO: LOOP: DO: LOOP
sha_na_na_na_na_na_na_na_na_na:
sha_na_na_na_na_na_na_na_na_na: