Thanks, Yeah I realised that lastnight, which is why I removed whatever I said in my next post

. I've fixed it now.
Global Aspect As Float
sync on
sync rate 0
make object box 1,1,1,1
Do
X#=Get Window Client Width()
Y#=Get Window Client Height()
`X=X#
`Y=Y#
If (X#<>Screen Width() Or Y#<>Screen Height()) And Is Maximised()=0
Set Display Mode X#,Y#,Display Depth(),0,2,0
Aspect=X#/Y#
Set Camera Aspect Aspect
make object box 1,1,1,1
MaxActive=0
EndIf
If Is Maximised()=1 And MaxActive=0
Set Display Mode Display Width(),Display Height(),Display Depth(),0,2,0
make object box 1,1,1,1
M=M+1
Print "Maximised"
MaxActive=1
EndIf
Set Cursor 10,10
print "-Display-"
print "Width ",Display Width()
print "Height ",Display Height()
print "-Screen-"
print "Width ",Screen Width()
print "Height ",Screen Height()
print "Object ",Object exist(1)
Print "-Window-"
print "Width ",X#
print "Height ",Y#
print "Aspect ",Aspect
print M
print ObjY#
if mouseclick()=1
ObjY#=WrapValue(ObjY#+(Old#-MouseX()))
EndIf
rotate object 1,0,ObjY#,0
Old#=MouseX()
sync
Sync Sleep 1
Loop
EDIT- Again, this is only rough code