ScreenSaver _Proc ( ) ElseIf $CmdLine = 0 Or StringLeft ( $CmdLineRaw, 3 ) = "/c:" Then
Here is an obstraction example on how we can make working screensaver:Įxpand collapse popup #include If $CmdLineRaw = "/S" Then When we press the "Options" button from the screensaver properties dialog (right mouse button on the screensaver -> "Install" item), the /c: command passed to our script (screensaver).Īnd then we can run screensaver when it required, or we can show Options dialog, wich can be a simple GUI.When we sellect Install item from the context menu of the file, the screensaver executed with /p first command line ($CmdLine), and a handle to DC (to show our preview in desktop properties dialog) is the second command line ($CmdLine).When we sellect Options item from the context menu of the file, the screensaver executed with no command line passed.When we run the screensaver, or if we sellect Test (Check) Item from the context menu of the file, it executed with /S command line.This is a demonstration script on how to make your own screensaver - screensaver is basicaly an exe-program, but renamed to *.scr extension.