/desktop-wallpaper

Using the COM API of Windows to configure wallpaper settings.

Primary LanguageC++MIT LicenseMIT

Desktop Wallpaper (✨)

using the COM API of Windows to configure wallpaper settings. Require Win8+.


license npm downloads star issues


Features (⭐)

  • set slide show

Getting Started (✅)

  • Installation (⏬)

    • npm install desktop-wallpaper --save
  • Usage (⚡)

    import {setWallpaper, getWallpaper, setPosition, getPosition, getBackgroundColor, setBackgroundColor} from "desktop-wallpaper";
    // or
    const {setWallpaper, getWallpaper, setPosition, getPosition, getBackgroundColor, setBackgroundColor} = require("desktop-wallpaper");
    
    setWallpaper(0, "../../assets/demo.jpg")
    console.log(getWallpaper(0))
    setPosition(3)
    console.log(getPosition())
    setBackgroundColor(255,255,255)
    console.log(getBackgroundColor())

The End (💘)