Thanks =PRoF=! That code does indeed trap both the keyboard and mouse. But...
I still get multiple keypresses and mouse clicks.
Like this:
print "Testing for keypress or mouseclick..."
print
repeat
a$=""
repeat
until inkey$()<>"" or mouseclick()<>0
a$=inkey$()
if mouseclick() then a$="mouse"
print "Key pressed: "+a$
until a$=chr$(27)
My desire is to wait for input, process the key or mouse press, do other things, then go back to waiting for input. I need the functionality of WAIT KEY, but with mouse input trapped as well.
Any other ideas?