View Issue Details

IDProjectCategoryView StatusLast Update
0020432MMW 5Extensions frameworkpublic2024-03-25 12:55
Reporterzvezdan Assigned To 
PriorityhighSeverityminorReproducibilityalways
Status closedResolutionfixed 
Target Version5.1Fixed in Version5.1 
Summary0020432: Ability to read (and maybe write) registry values in JS needed
DescriptionI am trying to create a skin that should look as a standard Windows application as much as it could be possible. I want to set color values of some skin elements using Windows system colors that are not available with system colors available in CSS (https://www.w3.org/TR/css-color-4/#css-system-colors). So, I would like to read the Computer\HKEY_CURRENT_USER\Control Panel\Colors registry section to be able to get these values.

MM4 had a nice SDBRegistry class with Get/Set StringValue property, but it seems no such thing exists in MM5.

By the way, your utils class is so poorly documented on the old API with so many functions missing (https://www.mediamonkey.com/docs/api/classes/Utils.html), and the new API don't mention it all (https://www.mediamonkey.com/docs/apinew/index.html). It was no such fun searching your JS source code to find if MM5 supports something like reading the registry, since search for utils. returns more than 1000 results. The only related thing that I found is app.utils.getTaskbarColor(), which doesn't return a correct value on my Windows 11 at all: {r: 45, g: 181, b: 236}.
TagsNo tags attached.
Fixed in build2832

Activities

Ludek

2024-01-17 21:10

developer   ~0074072

Last edited: 2024-01-17 21:10

Writing would require UAC, but reading is
implemented in build 5.1.0.2832

Example:
let value = app.utils.getRegistryValue( 'HKEY_CURRENT_USER\\Control Panel\\Colors', 'ButtonFace');

Ludek

2024-01-17 21:17

developer   ~0074073

Fixed in 5.1.0.2832

peke

2024-03-25 12:55

developer   ~0074793

Verified 3007