Windows Spotlight Image Saver + Download Link + VB.Net Tutorial


Windows Spotlight is a feature included by default in Windows 10 that downloads pictures  automatically from Bing and displays them when the lock screen is being shown on a computer running Windows 10.
 
The Windows 10 Spotlight feature provides beautiful backgrounds on your Lock Screen. These images are wallpaper worthy, too.


There can be many ways(may lead to same or different result) to get a windows spotlight images  from your PC! (Assuming you've got windows 10)

Method-1

First and simplest way it to use "PrtScr" button to get your screen.But the result will be something like.













Now Clearly you don't want all captions appearing in front of such a beautiful image. [unless you want captions appearing in front of such a beautiful image :) ].

Method-2

There are many sites where you can find this way, but I'll still mention it.

Open File Explorer and type the following path :



%LocalAppData%\Packages\Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy\LocalState\Assets



Now, the best thing to do would be sort by size in descending order.

Add .jpg extension to each files starting from top until you get your image!
 

Method-3 

This is probably what you came for! Good job on making till here!

You can directly download the standalone application from here.



 













Lousy UI huh?

Well, this application is made keeping functionality in mind! I'm sure you will make a better one.
(For those who are here for VB.net tutorial)
 

Just Scroll Down the List.
 

Select your Image and Click Export! That's it.


VB.Net Tutorial

Assuming you have basic knowledge of .Net Framework let us proceed with the tutorial!
Create a new Windows Application ,
Add the following controls:

  1. Button to export the image.
  2. Save File Dialog.
  3. A ListBox to store list of files.
  4. A PictureBox for preview.
First of all, we will need to convert the generalized path to VB understandable form.For that we will use Environment.SpecialFolder .

Use the following code to get list of our files.

Dim LaD As String = GetFolderPath(Environment.SpecialFolder.LocalApplicationData)
        Dim Files = Directory.EnumerateFiles(LaD & "\Packages\Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy\LocalState\Assets")
  
Now, we have our File object. Let's use it to add fill our listbox. Call this in "Form_Load"


For Each f As String In Files
            ListBox1.Items.Add(f)

Next


Now, when user changes listbox item, we want to display image accordingly.


PictureBox1.Image = Image.FromFile(ListBox1.SelectedItem)


Now for export part.

Just Show SaveFile Dialog on Export Click event and where FileOk is triggered, insert following code.


My.Computer.FileSystem.CopyFile(ListBox1.SelectedItem, ListBox1.SelectedItem,True)


Here true represents overwriting is enabled.

Note:-Make sure to change filter of SaveFile Dialog to .jpg extension so the file is saved in jpg format.  

Comments