Try this:
SHOW WINDOW
SET WINDOW ON
SET WINDOW SIZE 800, 400
set window position 50,100
window to front
title$ = "Black Angel"
set window title title$
print "sending window to front"
Exist = WINDOW EXIST(title$)
a$ = " exists."
if exist = 0 then a$ = " does not exist."
repeat
ink rgb(0,0,255),0
text 10,100,"The window, " + title$ + ", "+ a$
ink rgb(255,255,0),0
tw = text width("Press any key to exit.") / 2
center text 400 - tw,350,"Press any key to exit."
until scancode() > 0
end
EDIT: You're welcome.
So many games to code.......so little time.