Registry value decimal/HEX

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
User avatar
Grovkillen
Automation Wizard
Posts: 1128
Joined: Fri Aug 10, 2012 2:38 pm
Location: Bräcke, Sweden
Contact:

Registry value decimal/HEX

Post by Grovkillen » Mon May 17, 2021 7:05 am

When I try to edit the WallPaperStyle and TileWallpaper the values are stored as hexadecimal but Windows want them to be stored as decimal. How do I force MS to write them as decimal?

Code: Select all

  RegistryWriteKey>HKEY_CURRENT_USER,Control Panel\Desktop,WallPaper,C:\my\path\to\bg.png
  RegistryWriteKey>HKEY_CURRENT_USER,Control Panel\Desktop,WallPaperStyle,0
  RegistryWriteKey>HKEY_CURRENT_USER,Control Panel\Desktop,TileWallpaper,0
  RegistryWriteKey>HKEY_CURRENT_USER,Control Panel\Colors,Background,0 0 0
Let>ME=%Script%

Running: 15.0.27
version history

User avatar
Marcus Tettmar
Site Admin
Posts: 7393
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Re: Registry value decimal/HEX

Post by Marcus Tettmar » Tue May 25, 2021 8:09 am

RegistryWriteKey will write integers or strings. Since the values you are supplying are integers it should write them as integers. Macro Scheduler does not write as hex.

Maybe I'm not understanding what your issue is.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

User avatar
Grovkillen
Automation Wizard
Posts: 1128
Joined: Fri Aug 10, 2012 2:38 pm
Location: Bräcke, Sweden
Contact:

Re: Registry value decimal/HEX

Post by Grovkillen » Tue May 25, 2021 8:42 am

You can perhaps try to write to the registry key WallPaperStyle and compare it with the default (system created) value and you'll see that it's not written the same.

But this issue is now a deal breaker for me since I'm now using a XML file to change the "theme" of Windows.
Let>ME=%Script%

Running: 15.0.27
version history

Post Reply
cron
Sign up to our newsletter for free automation tips, tricks & discounts