Technical support and scripting issues
Moderators: Dorian (MJT support), JRL
-
Grovkillen
- Automation Wizard
- Posts: 1128
- Joined: Fri Aug 10, 2012 2:38 pm
- Location: Bräcke, Sweden
-
Contact:
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
-
Marcus Tettmar
- Site Admin
- Posts: 7393
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
-
Contact:
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.
-
Grovkillen
- Automation Wizard
- Posts: 1128
- Joined: Fri Aug 10, 2012 2:38 pm
- Location: Bräcke, Sweden
-
Contact:
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.