kloyenz Posted May 13, 2004 Share Posted May 13, 2004 Hello, Does anybody know how to change the desktop wallpaper to a downloaded file without the user seeing any backgrounds ? And afterwards refreshing the background so that the new foto is visible immediatly ? Thnx Link to comment Share on other sites More sharing options...
Josbe Posted May 14, 2004 Share Posted May 14, 2004 ...try something like this: RegWrite("HKEY_CURRENT_USER\Control Panel\Desktop", "wallpaper", "REG_SZ", "mybmp.bmp") EnvUpdate() AUTOIT > AutoIt docs / Beta folder - AutoIt latest beta Link to comment Share on other sites More sharing options...
Josbe Posted May 14, 2004 Share Posted May 14, 2004 The background file is changed...but isn't refreshed. you're right...something like the AutXtra it's needed. AUTOIT > AutoIt docs / Beta folder - AutoIt latest beta Link to comment Share on other sites More sharing options...
scriptkitty Posted May 14, 2004 Share Posted May 14, 2004 aye, I had the same issue, if you open the properties window tab to the backround and click ok, then it refreshes. AutoIt3, the MACGYVER Pocket Knife for computers. Link to comment Share on other sites More sharing options...
ezzetabi Posted May 14, 2004 Share Posted May 14, 2004 Solution!! Pseudocode : Run(@comspec & " /c " & @Windowsdir & "\system32\desk.cpl","",@sw_hide) ;Real code actually.. WinWait(the window) Send( the ALT+? combination to go in the list) ;Language dependant Send( file name, no ext) Send("{Enter}") Link to comment Share on other sites More sharing options...
Nutster Posted May 15, 2004 Share Posted May 15, 2004 (edited) What about using ControlSend? That would not be language dependant, right? ; in Win98 (untested) Run("Control.exe Desk.cpl", @SW_HIDE) WinWait("Display Properties") ;Language Dependant ControlFocus("Display Properties", "", "SysListView321") ControlSend("Display Properties", "", "SysListView321", "Clouds") ControlClick("Display Properties", "", "Button4"); Ok button Edit: Fix function call. Edited May 18, 2004 by Nutster David NuttallNuttall Computer Consulting An Aquarius born during the Age of Aquarius AutoIt allows me to re-invent the wheel so much faster. I'm off to write a wizard, a wonderful wizard of odd... Link to comment Share on other sites More sharing options...
ezzetabi Posted May 17, 2004 Share Posted May 17, 2004 ;Working on my W2000 computer with Active desktop disabled. $title = "Display Properties" $wallpaper = "winnt";<------- Put here the filename you want after you copied the .bmp file it in @windir. (or set it "(none)") Run(@comspec & " /c " & @Windowsdir & "\system32\desk.cpl","",@sw_hide) WinWait($title) ControlFocus($title, "", "ListBox2") ControlSend($title, "", "ListBox2",$wallpaper) ControlClick($title, "", "Button7"); Ok button 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