Jump to content

Recommended Posts

Hi Guys I'm a noob .. Just started with AutoIt 3 days ago, anyeway want to change wallpaper. I looked in forum and found this:

;RegWrite("HKEY_CURRENT_USER\Control Panel\Desktop", "TileWallPaper", "REG_SZ", 0)

;RegWrite("HKEY_CURRENT_USER\Control Panel\Desktop", "WallpaperStyle", "REG_SZ", -1)

;RegWrite("HKEY_CURRENT_USER\Control Panel\Desktop", "Wallpaper", "REG_SZ", $aWallpapers[$iRand])

;DllCall("user32.dll", "int", "SystemParametersInfo", "int", 20, "int", 0, "str", $aWallpapers[$iRand], "int", BitOR(1, 2))

This was from code that looks like it changes the wallpaper randomly but thats not my goal.

These seem to be the pertinent lines, but when I change the registry to change the wallpaper, it doesnt "refresh".

Seems like I need a call to the background window to do that?

Would something like activate do it? In know their's a function to get the background handle.

Also, what is the last line?

TY in advance

Link to post
Share on other sites

You should properly search the forums before asking a question to see if its discussed or not. Anyways, I just saw this one:

Was this what you were looking for???

----------------------------------------

:bye: Hey there, was I helpful?

----------------------------------------

My Current OS: Win8 PRO (64-bit); Current AutoIt Version: v3.3.8.1

Link to post
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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...