You're right... I don't know what was wrong with it. I tried using a window outside the script, and it worked right. The weird thing is, after several days of this problem, when I went back to try it again... It worked fine. Thanks for all the help, though. Maybe my computer's being fickle again.