Open rprouse opened 1 year ago
[DllImport("user32.dll", CharSet = CharSet.Auto)]
private static extern Int32 SystemParametersInfo(UInt32 uiAction, UInt32
uiParam, String pvParam, UInt32 fWinIni);
private static UInt32 SPI_SETDESKWALLPAPER = 20;
private static UInt32 SPIF_UPDATEINIFILE = 0x1;
To convert HTML to plain text, see HTML Agility Pack, https://github.com/ceee/ReadSharp/blob/master/ReadSharp/HtmlUtilities.cs
Set the desktop wallpaper to a random image from NASA
Today's pic is always at https://apod.nasa.gov/apod/astropix.html The pic for each day is at https://apod.nasa.gov/apod/ap221112.html
The lower res picture on the page links to the hi-res version. Image, title and description don't have class, id or identifying attributes, so it will need to be by number.