WhiteAvenger Posted July 1, 2008 Share Posted July 1, 2008 Hi, is it possible, on a WinXP machine, to get and set the desktop background? Would I have to go through the control panel there or is there already a simple function or include script that I could use? Thanks, --WhiteAvenger Link to comment Share on other sites More sharing options...
PsaltyDS Posted July 1, 2008 Share Posted July 1, 2008 (edited) Hi,is it possible, on a WinXP machine, to get and set the desktop background?Would I have to go through the control panel there or is there already a simple function or include script that I could use?Thanks,--WhiteAvengerIt's just a registry setting in HKEY_CURRENT_USER\Control Panel\Desktop\WallPaper, you might also want WallPaperStyle = 2 for stretch full screen.See RegWrite() Edited July 1, 2008 by PsaltyDS Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted July 1, 2008 Share Posted July 1, 2008 Setting the wallpaper through registry is not the best since you must restart for something to happen. Better to use dll, see flyingboz _ChangeDestopWallpaper() http://www.autoitscript.com/forum/index.php?showtopic=16628 .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
WhiteAvenger Posted July 1, 2008 Author Share Posted July 1, 2008 Setting the wallpaper through registry is not the best since you must restart for something to happen. Better to use dll, see flyingboz _ChangeDestopWallpaper() http://www.autoitscript.com/forum/index.php?showtopic=16628Thanks, I think this does what I wanted. However, it doesn't have a Get() version, so I can't find out what the current Desktop Wallpaper is. Is there a similar function or a workaround for that? Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted July 1, 2008 Share Posted July 1, 2008 Use RegRead() on the key PsaltyDS talked about in post2 .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
WhiteAvenger Posted July 1, 2008 Author Share Posted July 1, 2008 Use RegRead() on the key PsaltyDS talked about in post2Yup, realised that as well. Thanks! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now