mousehit()

Blitz3D Forums/Blitz3D Beginners Area/mousehit()

Or even simpler:

if mousehit(1)=1 and mousex()=400 and mousey()=300 then
 print "whatever"
endif