errr... how many buttons does you mouse have?!
the mouse returns the stat of each button as a single integer: lmb has a value of 1, rmb has a value of 2 and cmb (wheel button) has a value of 4.
These values are added together to give the mouseclick().
so just pressing lmb returns 1, pressing lmb and cmb returns 5, etc.
crap! just realised you weren't asking that.
to stop db registering multiple clicks you need a variable that cancels out the mouseclick() after the first click.
I think this is known as a flip-flop switch in electronics.
sync on
do
oldmc= newmc
newmc= mouseclick()
if newmc > oldmc
a$= "flip"
else
a$= "flop"
endif
cls
print a$
sync
loop
that is so annoying.
i really should buy a keyboard