【发布时间】:2022-12-02 11:31:06
【问题描述】:
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 screen.
This feature isn't standard in windows though, but there are external applications like ultramon that do this. Anyone know how that works?
The way I thought it might work if I join the two images together into one and then make that the wallpaper, but then I still need a way to span one image accross both screens.
Also, how could I grab some info about the monitor setup, the resolution of each screen and their placement? Like what you see in the gui display settings in windows, but in numbers.
【问题讨论】:
-
Don't know the answer for you, but AFAIK you are on the right track. I tried out a few of the third party apps that do this, and I vaguely remember at least one of them explaining that they got the display dimensions and relative positions from windows, and stitched together the two images to display across both monitors. I don't remember which or where I read it, but if I run into it again and remember, I'll leave another comment.
-
Thanks. Would be great if you find it.
标签: python windows winapi desktop-wallpaper