leoFitz1024 / desktop-wallpaper

Using the COM API of Windows to configure wallpaper settings.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 (💘)

About

Using the COM API of Windows to configure wallpaper settings.

License:MIT License


Languages

Language:C++ 63.8%Language:TypeScript 29.0%Language:JavaScript 3.7%Language:Python 1.8%Language:CMake 1.7%