Jump to content

Desktop Background


Recommended Posts

Hey,, simple question, can you change the desktop background using autoit? my computer keeps messing up and my desktop always says

"Active Desktop Recovery

Microsoft Windows has experienced an unexpected error. As a precaution, your Active Desktop has been turned off. To restore the Active Desktop, use the following troubleshooting tips: "

and its a bit annoying...

thanks, methodzero

[center]"When you look at old, classic games like Snake, you often put it off because it's such a simple game, but it's only when you actually try and create your own unique game from scratch, do you finally appreciate those games."[/center][center]Don't ask for answers if you haven't TRIED yet![/center][center]Most answers can be answered in the help file! Use it![/center]

Link to comment
Share on other sites

Hey,, simple question, can you change the desktop background using autoit? my computer keeps messing up and my desktop always says

"Active Desktop Recovery

Microsoft Windows has experienced an unexpected error. As a precaution, your Active Desktop has been turned off. To restore the Active Desktop, use the following troubleshooting tips: "

and its a bit annoying...

thanks, methodzero

well then stop turning off your computer nasty or change your wallpaper once forever.

I can do signature me.

Link to comment
Share on other sites

Hey,, simple question, can you change the desktop background using autoit? my computer keeps messing up and my desktop always says

"Active Desktop Recovery

Microsoft Windows has experienced an unexpected error. As a precaution, your Active Desktop has been turned off. To restore the Active Desktop, use the following troubleshooting tips: "

and its a bit annoying...

thanks, methodzero

In Windows XP (and probably most of the others) the wallpaper is sitting in the registry key called "Wallpaper" located in "\HKEY_CURRENT_USER\Control Panel\Desktop" maybe you can use RegWrite or something....

Are you running Windows 98??? Sounds like spyware is corrupting your active desktop.

Whaaaat?? I have had both Windows 98 and XP and Active Desktop has acted far worse on XP!! Edited by TzarAlkex
Link to comment
Share on other sites

true that,I've been playing online games, then my computer gets asploded with "Dr Watson Postmortem has encountered a problem and need to close" Then sometimes i get a blue screen of death n I gotta restart....and when I come back the desktop dies

[center]"When you look at old, classic games like Snake, you often put it off because it's such a simple game, but it's only when you actually try and create your own unique game from scratch, do you finally appreciate those games."[/center][center]Don't ask for answers if you haven't TRIED yet![/center][center]Most answers can be answered in the help file! Use it![/center]

Link to comment
Share on other sites

This should do the job!

$file_path = @SCRIPTDIR & "\Image.bmp" ;Filepath of the image
Dim Const $SPI_SETDESKWALLPAPER = 20;
Dim Const $SPIF_UPDATEINIFILE = 0x01;
Dim Const $SPIF_SENDWININICHANGE = 0x02;
Dim Const $REGISTRY_PATH = "HKEY_CURRENT_USER\Control Panel\Desktop"

$err = DllCall( "User32.dll", "int", "SystemParametersInfo", "int", $SPI_SETDESKWALLPAPER, _
                                    "int", 0, "string", $file_path, "int", $SPIF_UPDATEINIFILE )
$err2 = DllCall( "User32.dll", "int", "SystemParametersInfo", "int", $SPI_SETDESKWALLPAPER, _
                                    "int", 0, "string", $file_path, "int", $SPIF_SENDWININICHANGE )
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...