-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setting a wallpaper #73
Comments
The file was deleted from mediafire @youngerwarrior |
IDesktopWallpaper:=ComObject("{c2cf3110-460e-4fc1-b9d0-8a1c0c9cc4bd}","{b92b56a9-8b55-4e14-9a89-0199bbb6f93b}")
loop 100 {
ComCall(8,IDesktopWallpaper,"Uint",Random(0,0x00FFFFFF))
Sleep 1000
} this will set a random rgb color every 1000ms IDesktopWallpaper:=ComObject("{c2cf3110-460e-4fc1-b9d0-8a1c0c9cc4bd}","{b92b56a9-8b55-4e14-9a89-0199bbb6f93b}")
ComCall(3,IDesktopWallpaper,"Ptr",0,"WStr","C:\path\to\wallpaper.jpg") ;monitorID=0 for all monitors this is for setting a wallpaper(image) on all virtual desktops, and all monitors #include %A_LineFile%\..\VD.ah2
VD.setWallpaperToDesktopNum("C:\path\to\wallpaper.jpg", 1) this is for setting a wallpaper(image) to Desktop 1 |
@FuPeiJiang Hi!
|
@kuitog if you want that, I'll try to write a random solid color .png generator in ahk ? |
Can't figure out how to set a desktop wallpaper with a solid color. (Or in alternative with an image)
The SetDesktopWallpaper function is not documented.
thanks
The text was updated successfully, but these errors were encountered: