@ Code Dragon
Oh sorry. I forgot it was using the Enhancements pack. Here's a non-pack-using version of it:
set window on : set window size screen width()*2,screen height()*2 : print "Do not close this! I dare you to try."
do
if distance2d#(mousex(),mousey(),screen width(),0)=<screen width()/20 then minimize window : sleep 1000 : restore window
loop
function distance2d#(x,y,tox,toy)
if x=>tox
d1#=x-tox
else
d1#=tox-x
endif
if y=>toy
d2#=y-toy
else
d2#=toy-y
endif
d1#=d1# ^ 2
d2#=d2# ^ 2
d1#=d1#+d2#
d2#=sqrt(d1#)
endfunction (d2#)
@ Sixty Squares
Hehe, that's even more annoying.
@ Roxas
Hm. I need some way of finding out if the mouse is there... I'm going to experiment.
-Twu Kai