![]() ![]() If you still want to use the screensaver from a non-trusted source, scan it for viruses before installing it on your windows, and even before opening it. a user might offer the screensaver file from his dropbox/onedrive/g-drive account.ĭo not take/trust such files from the internet or an online community as they may well contain viruses. ![]() Now that you know the StarField simulation screensaver filename (SSSTARS.SCR) it is tempting to search the internet and download a copy of it, and avoid of powering on a trusted old Windows XP computer. If you don't have access to a trusted Windows XP computer, but you are tempted to search for the StarField screensaver at the internet ![]() Give me my free copy of this screensaver C. You can download the free version for Windows (Windows7, Windows 8, Windows 10) and MacOS. It has many more features that you will love to have on your computer. It shows the moon in its current phase, and has stars that will move around in space to form any message or quote that you wrote. The StarMessage screensaver is a nice replacement/alternative to the StarField screensaver. Put the created lock.exe in your path, after that, typing lock should engage the configured screen saver and lock your workstation.StarMessage, a modern alternative to the StarField simulation NET Framework, copy and paste the above code into lock.cs, then run: %SystemRoot%\Microsoft.NET\Framework\v3.5\csc.exe lock.cs SendMessage(GetDesktopWindow(), WM_SYSCOMMAND, SC_SCREENSAVE, 0) Public static void SetScreenSaverRunning() Private const int WM_SYSCOMMAND = 0x0112 Private const int SC_SCREENSAVE = 0xF140 Private static extern IntPtr LockWorkStation() Private static extern IntPtr SendMessage(IntPtr hWnd, uint Msg, int wParam, int lParam) Private static extern IntPtr GetDesktopWindow() Putting together the cmd and vbs script ideas with the code from the answer to Launch System Screensaver from C# Windows Form I came up with the following: using System Even the answer to Launch System Screensaver from C# Windows Form only starts the screen saver, it does not password protect on resume. It may not be possible to reproduce the system behaviour of starting the screen saver and password protecting on resume. Neither of these answers is perfect, both reveal a flicker of the desktop after the screen saver is disabled and just prior to the workstation being locked. ObjShell.Run "rundll32.exe user32.dll,LockWorkStation" ReturnVal = objShell.Run("logon.scr", 1, True) ' The "True" argument will make the script wait for the screensaver to exit Or lock.vbs: Set objShell = CreateObject("Wscript.Shell") I did some additional searching and found that you could create lock.cmd: /wait logon.scr /s & rundll32 user32.dll,LockWorkStation
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |