Screensaver

BlitzPlus Forums/BlitzPlus Programming/Screensaver

Starwar(Posted 2007) [#1]
Hi guys. Iīm programming a Screensaver. But I donīt know how to program the Optionmenu in the Display Propertiesdialog. Can you help me?
PS: When I close the DisplProb. window the screensaver starts.


Blueapples(Posted 2007) [#2]
You will get a command line switch that tells you what mode to go into. This code is from a file I have (got it here somewhere) that shows how to build a screen saver in BlitzMax. You'll have to convert the syntax as I don't know BlitzPlus:

If AppArgs.length > 1 
	Select AppArgs[1]
		Case "/p"
			InitPreviewMode( )
		Case "/s"
			InitSaverMode( )
		Case "/c"
			InitConfigMode( )
		Default
			InitConfigMode( )
	End Select  
Else
	InitConfigMode( )
EndIf


This might also help you: http://blitzmax.com/codearcs/codearcs.php?code=266