Search

Categories

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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:  https://youtu.be/AjYMfLqRplI

1. Install Screensaver

https://github.com/cDima/Aerial 
e:\aerial
right click on the .scr and install

image
Shortcut to screen saver settings:  Screen saver

image 

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:

C:\Users\Dave\AppData\Local\Aerial

This will download what you need (C# Console App).

http://a1.phobos.apple.com/us/r1000/000/Features/atv/AutumnResources/videos/entries.json   - 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 = "http://a1.v2.phobos.apple.com.edgesuite.net/us/r1000/000/Features/atv/AutumnResources/videos/" + filename; Console.WriteLine("downloading " + filename); using (var client = new WebClient()) { client.DownloadFile(url, filename); } } } Console.ReadLine(); }

Or https://bitbucket.org/davemateer/screensaverdownloader/src   with a progress bar

image

 

image
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

image

Create a lock.bat file

image

@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

image

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

http://www.eightforums.com/tutorials/8267-power-options-add-console-lock-display-off-timeout.html

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

image

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\7516b95f-f776-4464-8c53-06167f40cc99\8EC4B3A5-6868-48c2-BE75-4F3044BE88A7

Change Hide to Show.

Attributes DWORD

1 = Hide "Console lock display off timeout"

2 = Show "Console lock display off timeout"

clip_image001

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.

| | #