Jump to content
Sign in to follow this  
Steven Vandenhoute

regwrite a variable

Recommended Posts

Steven Vandenhoute

Is this possible?

RegWrite("HKEY_CURRENT_USER\Control Panel\Desktop", "OriginalWallpaper2", "REG_SC", $wallpaper)

When I try to run this line I receives a error the the variable


"You cannot solve a problem with the mind that created it" (Albert Einstein)

Share this post


Link to post
Share on other sites
PaulIA

RegWrite("HKEY_CURRENT_USER\Control Panel\Desktop", "OriginalWallpaper2", "REG_SC", $wallpaper)

The "REG_SC" needs to be "REG_SZ" if you're writing a string.


Auto3Lib: A library of over 1200 functions for AutoIt

Share this post


Link to post
Share on other sites
Steven Vandenhoute

RegWrite("HKEY_CURRENT_USER\Control Panel\Desktop", "OriginalWallpaper2", "REG_SC", $wallpaper)

The "REG_SC" needs to be "REG_SZ" if you're writing a string.

ok, my mistake, now i get it why it doesn't work


"You cannot solve a problem with the mind that created it" (Albert Einstein)

Share this post


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
Sign in to follow this  

×