This is a python snippet to set wallpaper as the photo of the day in national geographic.
1. install python form http://www.python.org/download/
2. install python image library(PLI) from http://www.pythonware.com/products/pil/
3. say the code below and run it by python
python 代码
"""
Set the wallpaper as the picture got from national geographic picture of the day
by seasons@gmail.com
"""
import ctypes
import Image
import calendar
import urllib
import socket
STOREDIR = 'C:/lg_wallpaper/pod/'
def setWallpaperFromBMP(imagepath):
SPI_SETDESKWALLPAPER = 20 # According to http://support.microsoft.com/default.aspx?scid=97142