Information | My stats |
---|---|
Text |
darclander / starbackground Goto Github PK
View Code? Open in Web Editor NEWA self-made wallpaper engine which turns your windows wallpaper into a moving background.
License: GNU General Public License v3.0
A self-made wallpaper engine which turns your windows wallpaper into a moving background.
License: GNU General Public License v3.0
It has come to my understanding that the readme is incomplete since not everyone can follow it and properly setup the project. (Which to me might be hard to see since I know what I need to do). Therefore we should update the readme to facilitate the setup for new contributors / developers.
For some versions of windows (incorrectly installed or non-purchased versions) it seems like the function get_wallpaper_window()
does not return a correct HWND
to the windows wallpaper but instead returns 0
.
https://github.com/darclander/starBackground/blob/main/src/ui.cpp
HWND get_wallpaper_window() {
// Fetch the Progman window
HWND progman = FindWindow("ProgMan", NULL);
// Send 0x052C to Progman. This message directs Progman to spawn a
// WorkerW behind the desktop icons. If it is already there, nothing
// happens.
SendMessageTimeout(progman, 0x052C, 0, 0, SMTO_NORMAL, 1000, nullptr);
// We enumerate all Windows, until we find one, that has the SHELLDLL_DefView
// as a child.
// If we found that window, we take its next sibling and assign it to workerw.
HWND wallpaper_hwnd = nullptr;
EnumWindows(EnumWindowsProc, (LPARAM)&wallpaper_hwnd);
// Return the handle you're looking for.
return wallpaper_hwnd;
}
Any solutions for this would be greatly appreciated.
Currently the window management is handled with input to the application via argc
in C++. The default value for 0 arguments
is to set the window width: 1920
and height: 1080
. A better solution would be to find the window dimensions and set the width / height
accordingly.
I included the SDL2.dll with the executable file, and I still got this error. Any ideas why? Does the code still work?
I'm trying to port something like this to Rust so any feedback would be appreciated.
Currently there is no solution for using .gif / .mp4
files as a moving background. Instead of only having the star-like moving background a further advancement would be to allow users to import different file-types which would be used instead as the moving background.
Once the program is stopped the background will remain as a still of the current background. (Instead of moving stars it will just be white dots standing still). An upgrade would be to save the current background(s) and reset the wallpaper to them on program exit.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.