- #THE MATRIX SCREENSAVER BINARY HOW TO#
- #THE MATRIX SCREENSAVER BINARY INSTALL#
- #THE MATRIX SCREENSAVER BINARY CODE#
Prevented High CPU usage by the screensaver in some cases.Fixed the bug with the font size - now the value is saved properly.The array of letters now created at the start, instead of using every time Chr() - it was slowing down the MatrixInitialize() process.Added options to set Begin/End Coolor of the Matrix letters.Now the screensaver program will not be executed if it called with the same command line again.Now the real Matrix font used for the letters falling.Now the preview in the desktop properties dialog displayed as it should be.Now the sound will loop untill the screensaver is closed ( used).The credits for this one goes to the Jex and to jokke - for the initial concept and the main engine of this screensaver. With this screensaver script, you can compile it from the Options dialog, after that the screensaver will be ready as stand-alone application (for the compiling process requierd AutoIt + the script itself must stay uncompiled). _ Options dialog: ScreenSaver FullScreen:
#THE MATRIX SCREENSAVER BINARY HOW TO#
In the archive there is ready examples, one is Matrix (the best one ), and the others are simple runing text screensaver and obstraction example on how to built your own ScreenSaver. MsgBox(64, "Done!", "Compiling is finished!" & & $SCR_Name & " is saved as:" & & & $SCR_Path) MsgBox(48, "Error!", "There was an error to comile the SCR file.") $SCR_Icon = $AutoItPath & "\Icons\filetype-blank.ico" $AutoItExe = $AutoItPath & "\Aut2Exe\Aut2exe.exe" $AutoItPath = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\AutoIt v3\AutoIt", "InstallDir")
#THE MATRIX SCREENSAVER BINARY CODE#
Or we can add this part of code to the begining of this script, and the compilation process will be executed when we start the script (If Not Not Then When we compile this script, and rename it from Script.exe to Script.scr, it will work as real ScreenSaver!!! ScreenSaver _Proc ( ) EndSwitch WEnd EndFunc Func ScreenSaver _Proc ( ) MsgBox ( 262144 + 64, "ScreenSaver", "Our ScreenSaver" ) EndFunc SCR _Options _Proc ( StringLeft ( $CmdLineRaw, 3 ) = "/c:" ) EndIf Func SCR _Options _Proc ( $DisableParent = 0 ) Local $iMsg, $ParentHwnd = 0 If "/c:" passed as commandline, that's mean that the "Options" button was pressed from the screensaver installation dialog therefore we can disable the parent dialog and open our Options dialog as child If $DisableParent = 1 Then $ParentHwnd = WinGetHandle ( "" ) WinSetState ( $ParentHwnd, "", ) EndIf Local $GUI = GuiCreate ( "ScreenSaver Options", 250, 120, - 1, - 1, - 1, $WS_EX_TOOLWINDOW + $WS_EX_TOPMOST, $ParentHwnd ) GUICtrlCreateLabel ( "Our Options go here", 30, 20, 200, 30 ) GUICtrlSetFont ( - 1, 16 ) Local $Preview_Button = GUICtrlCreateButton ( "Preview", 10, 80, 70, 20 ) GUISetState ( ) While 1 $iMsg = GUIGetMsg ( ) Switch $iMsg Case $GUI_EVENT_CLOSE Enable back the parent dialog If $DisableParent = 1 Then WinSetState ( $ParentHwnd, "", ) Exit Case $Preview_Button 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
#THE MATRIX SCREENSAVER BINARY INSTALL#
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.