using the COM API of Windows to configure wallpaper settings. Require Win8+.
- set slide show
-
npm install desktop-wallpaper --save
-
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())