Advertisement
Guest User

Untitled

a guest
Dec 26th, 2013
1,031
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. dim shell
  2. Set shell = WScript.CreateObject("WScript.Shell")
  3. wallpaper = "C:\wallpapers\"
  4. h = Hour(Now())
  5.  
  6. if h >= 5 and h < 10 then
  7.     wallpaper = wallpaper & "01-Morning.png"
  8. elseif h >= 10 and h < 12 then
  9.     wallpaper = wallpaper & "02-Late-Morning.png"
  10. elseif h >= 12 and h < 16 then
  11.     wallpaper = wallpaper & "03-Afternoon.png"
  12. elseif h >= 16 and h < 18 then
  13.     wallpaper = wallpaper & "04-Late-Afternoon.png"
  14. elseif h >= 18 and h < 20 then
  15.     wallpaper = wallpaper & "05-Evening.png"
  16. elseif h >= 20 and h < 22 then
  17.     wallpaper = wallpaper & "06-Late-Evening.png"
  18. elseif h >= 22 then
  19.     wallpaper = wallpaper & "07-Night.png"
  20. elseif h >= 0 and h < 5 then
  21.     wallpaper = wallpaper & "08-Late-Night.png"
  22. end if
  23.  
  24. shell.RegWrite "HKCU\Control Panel\Desktop\Wallpaper", wallpaper
  25. shell.Run "%windir%\System32\RUNDLL32.EXE user32.dll,UpdatePerUserSystemParameters", 1, True
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement