Look up sys_metrics in the manual, it allows you to get the current width and height of the screen. Then video_set to make the game window. I think a screen saver needs to be changed from .exe to .scr for it to work.
I should mention that I've never made a screen saver, but this is how I would approach it.