Just thought someone might find this useful:
function HotSpot(left,top,right,bottom,debug)
if mousex()left
if mousey()top
out_one=1
if mouseclick()>0
out_two=mouseclick()
endif
endif
endif
if debug1
box left,top,bottom,right
endif
out_all=out_one+out_two
endfunction out_all
all it does is take the co-oords in the same way as the box command does so you can specify areas on the screen that you can click in. the function then outputs:
1- if the mouse is over the area
2- if the mouse is clicking with the left button on the mouse
3- if the mouse is clicking with the right button on the mouse
4- if both the right and left buttons are being clicked
5- if the mousewheel is being pressed (or buton 3 on the mouse)
6- if button 3 (or mousewheel press) and the left button are both pressed
7- if button 3 (or mousewheel press) and the right button are both pressed
8 if both the left and right buttons are pressed as well as button 3 or whe mousewheel button are pressed
also, if the debug value is set to 0 then the hotsopt will draw itself to the screen.