Questions tagged [desktop-wallpaper]

35 questions
10
votes
3 answers

Change wallpaper programmatically using c++ and windows api

I've been trying to write an application, using Qt and mingw32, to download images and set them as the background Wallpaper. I have read several articles online about how to do this, in VB and C#, and to some extent how to do it in c++. I am…
Blue Peppers
  • 3,718
  • 3
  • 22
  • 24
7
votes
1 answer

Draw on Windows 10 wallpaper in C++

Is there a way to get an handle to Windows's wallpaper (behind icons) in C++ in order to draw on it? That would allow to make an active desktop (discontinued after Windows XP) equivalent, a Wallpaper Engine equivalent, or any other similar tool.…
Barnack
  • 921
  • 1
  • 8
  • 20
7
votes
3 answers

Changing wallpaper on Linux programmatically

How would I change the wallpaper on a Linux desktop (using GNOME) within a C/C++ program? Is there a system API to do it?
nonpolynomial237
  • 2,109
  • 4
  • 27
  • 35
5
votes
2 answers

How does one detect when the wallpaper has changed (Windows XP or greater)?

I have figured out how to change the desktop wallpaper (there are dozens of examples on the Internet.) One thing that still eludes me: how do I detect when the wallpaper has changed? (Say via the Display control panel or another program changing…
Boogaloo
  • 101
  • 4
5
votes
2 answers

How to take screen shot of whole desktop without background/wallpaper picture in Windows

I need to capture screen shot without background picture (wallpaper). I can try to disable wallpaper, take screen shot and then enable it back, but: At moment i don't know how to disable/restore wallpaper (in simple case it is picture file assigned…
Andrei Galatyn
  • 3,322
  • 2
  • 24
  • 38
3
votes
5 answers

Windows wallpaper: not just BMPs?

I've read in a couple of places that the desktop wallpaper can be set to an HTML document. Has anyone had any success changing it programmatically? The following snippet of VB6 helps me set things up for BMPs but when I try to use it for HTML, I…
bugmagnet
  • 7,631
  • 8
  • 69
  • 131
3
votes
1 answer

different wallpaper for each screen for multi-monitor setups in Windows

I'm using: ctypes.windll.user32.SystemParametersInfoA(SPI_SETDESKWALLPAPER, 0, "picturefile", 0) To change the wallpaper. But I'm wondering if there's any simple way to put different wallpapers on each…
Steinthor.palsson
  • 6,286
  • 13
  • 44
  • 51
3
votes
1 answer

Changing programatically the wallpaper in Linux independently from the desktop environment or the window manager

Linux have got lots of desktop environments (GNOME, KDE, Xfce, Cinnamon...) and windowing systems (X11, Wayland, Mir...) and it seems that each one has got its own way to change the wallpaper. Are there some high-level libraries, especially in C++…
air-dex
  • 4,130
  • 2
  • 25
  • 25
3
votes
1 answer

How to change wallpaper using batch

I need to make a batch file that changes the wallpaper to a picture that is in the same location as the bat file I currently have this code: reg add "HKCU\Control Panel\Desktop" /v Wallpaper /f /t REG_SZ /d c:\images\wallpaper.bmp the problem with…
09stephenb
  • 9,358
  • 15
  • 53
  • 91
2
votes
1 answer

Set Windows Wallpaper fit/span/position using Python Script

There are many questions and articles about how to change desktop wallpaper using python script. Which is as under: file = "---path---" SPI_SETDESKWALLPAPER = 20 ctypes.windll.user32.SystemParametersInfoW(SPI_SETDESKWALLPAPER, 0, file , 0) However,…
Meet
  • 461
  • 4
  • 19
2
votes
0 answers

desktop wallpaper

Possible Duplicate: Programmatically changing desktop image Hi, I want to set the image as the wallpaper through cocoa program. I have to set the dynamically downloaded images as the wallpaper. My problem is, first time its correctly…
Esther
  • 41
  • 1
  • 2
2
votes
2 answers

SystemParametersInfo sets wallpaper completly black (using SPI_SETDESKWALLPAPER)

I try to change my desktop wallpaper. It works just fine when I use it like this: SystemParametersInfo(SPI_SETDESKWALLPAPER, 0, "C:\\1.jpg", SPIF_SENDCHANGE); But when I use it like this, the desktop wallpaper is set completly black: std::string s…
aasoo
  • 31
  • 1
  • 4
2
votes
3 answers

Changing Windows 7 Wallpaper Remotely

I am trying to remotely change the wallpaper on about 50 computers that are running Win 7 in a WORKGROUP environment. I have local admin rights to all of them plus they are running an agent (Faronics) that lets me push .bat .exe .msi .vbs and .ps1…
John Doe
  • 225
  • 2
  • 5
  • 11
2
votes
0 answers

Powershell windows 7 change background

This has been asked before here in a different form ( Powershell - Change windows 7 background to image off a website ) but I am still running into a bit of trouble here I have a variable in windows 7 (PC): Set-Variable DEF_IMG -value…
Daniel Cazan
  • 323
  • 1
  • 4
  • 13
1
vote
1 answer

How to write a Windows application to change the desktop wallpaper?

I would like to write a small Windows application which changes the desktop wallpaper based on photographs retrieved from a web service ? How should I go about this ? Which language / technology would this be the quickest to code in ?
vivekian2
  • 3,795
  • 9
  • 35
  • 41
1
2 3