Send mail to the author(s) E-mail

# Tuesday, 24 May 2016

Goal (Win10):

  • Screensaver shortcut – Ctrl Alt L
  • Force login after screensaver
  • Screen power off after 15 min

Here is what we are trying to do:

1. Install Screensaver 
right click on the .scr and install

Shortcut to screen saver settings:  Screen saver


2.Cache Videos

Useful if you are not on a fast link (my videos stopped and started a lot – 7MB/s link). The 6GB of total cached videos stored here:


This will download what you need (C# Console App).   - this is the json file which describes the files to download (from Aerial source)

static void Main() { for (int i = 1; i <= 10; i++) { for (int j = 1; j <= 4; j++) { var filename = "b" + i + "-" + j + ".mov"; var url = "" + filename; Console.WriteLine("downloading " + filename); using (var client = new WebClient()) { client.DownloadFile(url, filename); } } } Console.ReadLine(); }

Or   with a progress bar



If you ever get errors, clean out the entire cache and start again.  There is a bug (now fixed, but not in the tag4 release) which copied unfinished movie downloads into the cache directory.

3. Start Screensaver from keyboard shortcut


Create a lock.bat file


@START lockDesktop.exe
@%windir%\system32\rundll32.exe user32.dll,LockWorkStation

Create LockDesktop.exe

Use VisualStudio to create a console application

using System; using System.Runtime.InteropServices; namespace ConsoleApplication1 { public static class LockDesktop { [DllImport("user32.dll", EntryPoint = "GetDesktopWindow")] private static extern IntPtr GetDesktopWindow(); [DllImport("user32.dll")] private static extern IntPtr SendMessage(IntPtr hWnd, uint Msg, int wParam, int lParam); private const int SC_SCREENSAVE = 0xF140; private const int WM_SYSCOMMAND = 0x0112; public static void SetScreenSaverRunning() { SendMessage(GetDesktopWindow(), WM_SYSCOMMAND, SC_SCREENSAVE, 0); } public static void Main() { SetScreenSaverRunning(); } } }

4. Keyboard Shortcut


Right click on lock.bat in e:\aerial.  Create shortcut on desktop, then assign shortcut key.  I like Ctrl Alt L (which is similar to the Win L lock)

It should work!!!

5. Console Lock Display off timeout

I found that the screen would power down after 1 minute, however I wanted the screensaver on for 15minutes before screens went off:



Change Hide to Show.

Attributes DWORD

1 = Hide "Console lock display off timeout"

2 = Show "Console lock display off timeout"


So now you should be able to go to screensaver with:  Ctrl Alt L, and it should play for 15minutes, and go to login screen when move the mouse again.

| | #