So the problem you have is you are using co-ordinates based around 0,0 onwards and you want a border around instead?
Here is a little routine I have knocked together. That sort of does what you are saying I think lol. If you have some sort of grid management on the exe you posted I would think it fairly easy to alter the co-ordinates.
Rem Project: screenlimiting
Rem Created: Tuesday, August 24, 2010
Rem ***** Main Source File *****
set display mode 1000,750,32,1
sync on
cls 0
x=100:y=100:x1=900:y1=650
set camera view x,y,x1,y1
make object box 1,100,100,100
do
Mx=mousex():My=mousey()
if Mx>x and Mx<x1
if My>y and My<y1
if mouseclick()=1
cls
text 0,0,"You are clicking the main screen."
endif
else
if mouseclick()=1
cls
text 0,0,"You are clicking the border."
endif
endif
else
if mouseclick()=1
cls
text 0,0,"You are clicking the border."
endif
endif
inc rot#
yrotate object 1,wrapvalue(rot#)
sync
LOOP
That can be used to limit where you click. I have made it so it knows if you are clicking the window or border here though. Obviously you can change x,y,x1 etc to values you want. It will work automatically with any window size you choose. The screen flashing is because I was lazy refreshing the text. Obviously you would have your own drawing routine for things so not bothered using a image to blank the text instead of cls.
Rem Project: screenlimiting
Rem Created: Tuesday, August 24, 2010
Rem ***** Main Source File *****
set display mode 1000,750,32,1
sync on
cls 0
x=100:y=100:x1=900:y1=650
set camera view x,y,x1,y1
`make object box 1,100,100,100
get image 1,0,0,300,32
do
Mx=mousex():My=mousey()
if Mx>x and Mx<x1
if My>y and My<y1
if mouseclick()=1
paste image 1,0,0
text 0,0,"You are clicking the main screen."
dot Mx,My
endif
else
if mouseclick()=1
paste image 1,0,0
text 0,0,"You are clicking the border."
endif
endif
else
if mouseclick()=1
paste image 1,0,0
text 0,0,"You are clicking the border."
endif
endif
`inc rot#
`yrotate object 1,wrapvalue(rot#)
sync
LOOP
Couple of amendments in this one so it draws instead of just checks position and doesn't flash lol.
http://s6.bitefight.org/c.php?uid=103081