Topic: Tweaks (UserPreferencesMask and Others)  (Read 12517 times)

Re: Tweaks (UserPreferencesMask and Others)
« Reply #20 on: May 19, 2020, 11:40:54 PM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
Quote from: ericgl
Quote from: Lancelot

...Maybe what you are looking for is bit 40 found by ied206
"40 IME Toolbar"

Lancelot,

When I said 12th bit, I meant the 12th bit in hex (as appears in the registry).
In Binary, it's the 48th bit. if you count from 0, then it's bit 47:

1st QWORD (4 bytes)
b 10010000 00010010 00000011 10000000 =h 90 12 03 80
No fades, no slides, no shadow under windows, no shadow under mouse pointer

2nd QWORD (4 bytes)

b 00010000 00000000 00000000 00000000 =h 10 00 00 00
In Win10, when displaying the Input Indicator, use modern 3-char lang abbreviation (ENG, RUS, DEU)

b 00010000 00000001 00000000 00000000 =h 10 01 00 00
In Win10, when displaying the Input Indicator, use Win7 style 2-char lang abbreviation (EN, RU, DE)

I hope now it's more clear.

I have also created an Excel sheet for easy Hex value calculation especially for UserPreferencesMask. If you're interested, I can attach it for you to download.

Hi ericgl,

I failed with bit 47 on your definition, but here bit 40 to exactly what you write

I figure out math trouble  :wink: as you wrote :
Quote
12th bit in hex (as appears in the registry).

to avoid any confusion:
This gives me 3-char lang abbreviation
9E,3E,01,80,10,00,00,00

This (changing bit 40 to 1) gives me 2-char abbreviation
9E,3E,01,80,10,01,00,00

after first 5 hex values 9E,3E,01,80,10 (5x8-1=39 bit no) (-1 counting bits starting with 0 + left to right )
your value is at 6th byte
when you open byte value with registry,
 it will show you right to left human-readable (math way - which is opposite to left to right),
  which will be 1st bit at very right
   this way you jump 8 more bits 39+8=47
    but continue reading registry value 6th byte left to right, it will be first bit 39+1=40

with other words:

your way (when you read 6th byte with registry separately)
00000000 00000000 00000000 00000000 00000000 00000001
left to right way
00000000 00000000 00000000 00000000 00000000 10000000
1 is bit 40 (starting with bit 0)

ps:
think computer reads left to right, and when it starts to read 6th byte it will first read bit 0


ps:
I also made lots of mistakes like you did when counting in the past,
 so I had created syntax in a human-readable way to avoid confusion
Call,RegWriteBinaryBit,6,0,1,HKLM,0x3,"Tmp_Default\Control Panel\Desktop",UserPreferencesMask
which means:
change 6th byte of bit 0 to 1 (=bit40)

*
see also
https://www.silisoftware.com/tools/tweakui.php
Bit 13    Cursor shadow
(Left to right) =
00000000 00000100

If you read 2nd byte with registry you will see 00100000
00000000 00100000 --> and you will call "Bit 10 Cursor shadow"

Call,RegWriteBinaryBit,2,5,1,HKLM,0x3,"Tmp_Default\Control Panel\Desktop",UserPreferencesMask
change 2th byte of bit 5 to 1 (=bit 13)
 :wink:

*
Overall it is easier to share changing UserPreferencesMask values on topics with changing single bits to avoid all confusions.  :thumbsup:


***
I tested bit 40 with Azin-WimBuilder, the indicator was there to test,
 see pictures ( on new "Tweak UserPreferencesMask" plugin pictures also available with buttons "40-1" "40-0")

bit 40=0
ila_rendered


bit 40=1



*
It was exciting to remember all these stuff, but no new UserPreferencesMask value yet.  :cheers:

Well fun time before sleep anyway, thanks, let us know if you figure out new UserPreferencesMask values

Good Night
 :zzz:

Re: Tweaks (UserPreferencesMask and Others)
« Reply #21 on: May 19, 2020, 11:46:17 PM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
Forgot to respond:
Quote from: ericgl
I have also created an Excel sheet for easy Hex value calculation especially for UserPreferencesMask. If you're interested, I can attach it for you to download.

If you are ok, I can also attach to "Tweak UserPrefecences" Plugin.

As you can see, UserPreferncesMask values still on my interest.  :thumbsup:
Excel Sheet will be good.  :great:

:turtle:
 :zzz:

Re: Tweaks (UserPreferencesMask and Others)
« Reply #22 on: May 20, 2020, 06:54:50 AM »

ericgl

  • Jr. Chef
  • **
  • Date Registered: Dec 2015
  • Posts: 71
Interesting that some bytes are read right-to-left. I wasn't aware of that.

Here is the Excel sheet attached.
All the bits are read left-to-right, so it probably needs some changes, if bit order needs to be reversed.
Note there are 2 sheets in it - Calculation and Explanation. Modify as needed.
Cheers  :thumbsup:

Oh, if you need to modify the Calculation sheet, click Review > Unprotect sheet (there is no password).
« Last Edit: May 20, 2020, 06:56:46 AM by ericgl »

Re: Tweaks (UserPreferencesMask and Others)
« Reply #23 on: May 20, 2020, 07:05:32 AM »

ericgl

  • Jr. Chef
  • **
  • Date Registered: Dec 2015
  • Posts: 71
By the way, how is it that your WinPE10 (built using Azin) displays the language Input Indicator?
My WinPE10 cannot (built using Win10XPE).

I have set 2 languages in the WinPE10 registry (en-US and he-IL), and I can switch between them using ALT+SHIFT, just the taskbar indicator is missing.
I added Winlangdb.dll + en-US mui to Windows\System32, but still the Input Indicator does NOT appear.
Then I also added he-IL folder in Windows\System32, still doesn't show up.
Can you help - What else am I missing?
« Last Edit: May 20, 2020, 09:40:16 AM by ericgl »

Re: Tweaks (UserPreferencesMask and Others)
« Reply #24 on: May 20, 2020, 10:05:27 AM »

ericgl

  • Jr. Chef
  • **
  • Date Registered: Dec 2015
  • Posts: 71
One more thing:

Is it possible to add "Last updated" column to the Yomi page, which lists all the plugin scripts (yomi.cwcodes.net)?
Will make it easier to know when a plugin got updated, and whether it is still relevant or not.
« Last Edit: May 20, 2020, 10:06:04 AM by ericgl »

Re: Tweaks (UserPreferencesMask and Others)
« Reply #25 on: May 20, 2020, 10:11:29 AM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
Interesting that some bytes are read right-to-left. I wasn't aware of that.
Only to simplify:

An easy way to count, without thinking right-to-left or left-to-right

1st bit at 6th byte is 41th bit from the beginning.   :great:

since we count all from 0 it becomes bit 40 = 41th bit

:turtle:

Re: Tweaks (UserPreferencesMask and Others)
« Reply #26 on: May 20, 2020, 10:22:58 AM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
By the way, how is it that your WinPE10 (built using Azin) displays the language Input Indicator?
Because:
Wimbuilder-->Customize-IME patch is enabled

and Azin reads-writes keyboards from host registry, as a result -> picture
(also see wimbuilder picture with TUR keyboard indicator at Azin Topic first post http://theoven.org/index.php?topic=3052.0 )


check Wimbuilder-->Customize-IME patch , It should be easy to read with well-known cmd syntax.

You can ask Wimbuilder question to slore at Wimbuilder section
http://theoven.org/index.php?topic=2390.0



ps:
I do not need or use En keyboard in real life,
 I use a single TR keyboard so I do not need any keyboard indicator at all.  :cheers:
  Only curiosity  :cool:

*
Is it possible to add "Last updated" column to the Yomi page, which lists all the plugin scripts (yomi.cwcodes.net)?
Will make it easier to know when a plugin got updated, and whether it is still relevant or not.
In fact a good idea, with Date= values already there
If you have time to learn and improve html generator why not.

ps: For today there is only ChangeLog Plugin at all plugin projects utils to document all updates ...

I will try to keep in mind for the future.  :thumbsup:


:turtle:

Re: Tweaks (UserPreferencesMask and Others)
« Reply #27 on: May 20, 2020, 11:08:39 AM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
*
Is it possible to add "Last updated" column to the Yomi page, which lists all the plugin scripts (yomi.cwcodes.net)?
Will make it easier to know when a plugin got updated, and whether it is still relevant or not.
In fact a good idea, with Date= values already there
If you have time to learn and improve html generator why not.

ps: For today there is only ChangeLog Plugin at all plugin projects utils to document all updates ...

I will try to keep in mind for the future.  :thumbsup:
+
just came to my mind,
there is also "version" column,
but upload button plugins do not update html file  :embarrassed:
after full html generation time to time, they are updated....

It is a good idea to add a date column, but I have to rewrite the upload button out of .script code,
 winbuilder very slow, adding "update html" requires many codes that will make it very very much slower,
  maybe one day with date column.  :thumbsup:

:turtle:


Re: Tweaks (UserPreferencesMask and Others)
« Reply #28 on: May 20, 2020, 11:53:11 AM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
Here is the Excel sheet attached.
All the bits are read left-to-right, so it probably needs some changes, if bit order needs to be reversed.
Note there are 2 sheets in it - Calculation and Explanation. Modify as needed.
Cheers  :thumbsup:

Oh, if you need to modify the Calculation sheet, click Review > Unprotect sheet (there is no password).

Thanks ericgl

nice sheet
on sheet Bit 32 33 36 37 are new to me  :thumbsup:
or maybe they are Bit 39 38 35 34

I believe Calculation sheet follows Explanation sheet with a nice "UserPreferencesMaks" result,
 I will follow and add to plugin later.


4 new bits , Thanks  :djparty:


:turtle:

Re: Tweaks (UserPreferencesMask and Others)
« Reply #29 on: May 20, 2020, 02:00:21 PM »

ericgl

  • Jr. Chef
  • **
  • Date Registered: Dec 2015
  • Posts: 71
Lancelot,

I have not tested all 30+ bits yet. That's why they have a question mark in the "UI setting" column.
I don't know if they are "new". I believe they also apply for Win7.

By the way, it seems that the settings in the reg key "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects" take precedence over the settings in the UserPreferencesMask.
I noticed that Malok's script uses the settings inside this key.

Re: Tweaks (UserPreferencesMask and Others)
« Reply #30 on: May 20, 2020, 02:10:07 PM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
Hi ericgl,

as I wrote before, it is copy of "Tweak UserPreferencesMask" plugin

VisualEffects already at "Tweak UserPreferencesMask" plugin with default enabled and value 3

Iniside "Tweak UserPreferencesMask" plugin explanation already written

Quote
//0 (zero) for Let Windows choose what's best for my computer settings.  - Windows will automatically turn on and off the visual effects that it determines will run fine based on your system specs.
//1 for Adjust for best appearance settings. - This will turn on all visual effects.
//2 for Adjust for best Performance settings. - This will turn off all visual effects.
//3 for Custom settings.

RegWrite,HKLM,0x4,"Tmp_Default\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects",VisualFXSetting,%VisualEffects_ScrollBox%

still it is not clear what "all visual effects" means (which bits ! ... )
and reminding
 bit 31 also have similar control with "UI Effects" and it is clear all bits defined (see "Tweak UserPreferencesMask" plugin UI)

*
Well, I create plugin after you open this topic to gather all UserPreferencesMask info I can find in passing time.
It is open-source and anyone can copy  :wink:

:turtle:

Re: Tweaks (UserPreferencesMask and Others)
« Reply #31 on: May 20, 2020, 02:30:12 PM »

ericgl

  • Jr. Chef
  • **
  • Date Registered: Dec 2015
  • Posts: 71
Oh, sorry...lol.
Your script was first!!  :great:

Re: Tweaks (UserPreferencesMask and Others)
« Reply #32 on: May 20, 2020, 02:54:51 PM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
not always, and userpreferencesmask was either not exists or exists with all options on a single plugin in the past.

First Plugin I know that have documented userpreferencesmask is
Gena\Components\Tweaks Explorer\"Tweaks and Settings" Plugin by curare

probably there are older BartPE single plugins...

but gathering all UserPreferences mask values with single plugin with other settings make plugin very large like "Tweaks and Settings" Plugin by curare

"Tweak UserPreferencesMask" Plugin is different,
 It is experimental and the goal is to gather UserPreferencesMask information.

So this information can be used with other plugins like "Tweak Mouse" Plugin, "Tweak Visual Effects" Plugin, "IME Plugins" and probably in future Speech setting plugins  :wink:

It is more tidy and easy to find settings this way, I do not see any reason to add IME (bit40) setting to "Tweak Mouse" Plugin since UserPreferences value is there.  :lol:


ps:
"Tweak Mouse" Plugin, "Tweak Visual Effects" Plugin you can download with :
Code: [Select]
Call,DownloadX,"%BaseDir%\Projects\Yomi\ComponentsY\Tweaks\Tweak Mouse.Script"
Call,DownloadX,"%BaseDir%\Projects\Yomi\ComponentsY\Tweaks\Tweak Visual Effects.Script"

See: Downloading Plugins with a CodeBox

*
I will post here with your new bits after I follow your sheet  :wink:

:turtle:

Re: Tweaks (UserPreferencesMask and Others)
« Reply #33 on: May 21, 2020, 12:02:21 AM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
Hi ericgl,

*
checked your excel sheet, only wrong bit seems to me bit47 (which should be bit40)
I feel you will improve this sheet more in the future, share around when you finalize. :thumbsup:

*
New "Tweak UserPreferencesMask" Plugin on the server(s)

+
Added bit 32 33 36 37
Also
added lots of bit info in the plugin following your excel sheet and following UMPCalc 1.0.1 (06/2010) by "2010 Andrea Milanovic aka aerDNA"

keep in mind, lots plugins have lots of info commented out  :wink:

I could not find any other UserPreferencesMask value on internet. Maybe I can only add more info about existing bits inside the plugin that is all.

Now we have 27 defined bits (+1 very old reserved), with total of 64 available bits,
 and info missing, what changes bit 17 setting to 1 after boot ??? visual effects 0 changes which bits ??? .....
  life goes  :wink:



+
Also added "Test" button to "Tweak UserPreferencesMask" Plugin

This will ease figuring out UserPreferencesMask value without running Plugin.
 It is not an excel sheet like yours, or like UMPCalc, only a simple batch style Test button  :great:

:turtle:

Re: Tweaks (UserPreferencesMask and Others)
« Reply #34 on: May 21, 2020, 07:18:53 AM »

ericgl

  • Jr. Chef
  • **
  • Date Registered: Dec 2015
  • Posts: 71
Nice work, Lancelot.
Cheers  :thumbsup:

Re: Tweaks (UserPreferencesMask and Others)
« Reply #35 on: May 22, 2020, 05:29:11 AM »

ericgl

  • Jr. Chef
  • **
  • Date Registered: Dec 2015
  • Posts: 71
Looks like some of the RESERVED bits are going to be utilised soon:
https://blogs.windows.com/windowsexperience/2020/05/21/whats-coming-in-windows-10-accessibility/
« Last Edit: May 22, 2020, 05:31:43 AM by ericgl »

Re: Tweaks (UserPreferencesMask and Others)
« Reply #36 on: May 22, 2020, 02:07:17 PM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
Okay,

so better be ready from today

I just update "Tweak UserPreferencesMask" Plugin with all BitNO options  :thumbsup:

and a Bonus, Plugin process very faster now which will ease tests.  :flying:

I hope it helps to define new bits  :great:

:turtle:


Re: Tweaks (UserPreferencesMask and Others)
« Reply #37 on: May 22, 2020, 11:56:25 PM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
Another update with "Tweak UserPreferencesMask" Plugin

Most Important New Feature:
"Read HostOS" Button

Button reads UserPreferencesMask of Host Windows,
and shows which Bits enabled (=1) with Definitions on Plugin UI.

This makes it easy to quickly test by only changing a setting on windows and click "Read HostOS" Button

If you see an enabled bit without a definition, you find a new bit  :thumbup:, share around :cheers:



Other new features:
"Read TextBox" button to test UserPreferences values one will find on internet and see which bits enabled with this value  :wink:
And
I added the letter "V" to BitNo Label on Plugin UI which are effected by VisualEffects setting (according to TenForum, not retest here)

:turtle:

Re: Tweaks (UserPreferencesMask and Others)
« Reply #38 on: May 23, 2020, 01:23:47 AM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
"Tweak UserPreferencesMask" v18 on server now

*
"Read TextBox" button now supports space separator which is I see common on the internet, so easier to test now.

eg.
Code: [Select]
A1 00 02 80 10 00 00 00

anoter eg. with comma seperator
Code: [Select]
9E,1E,07,80,12,00,00,00

both will work with "Read TextBox" button

*
keep in mind, up to how value interpreted, it can be different (generally opposite) on internet,
bit values when interpreted are also can be opposite (or better say "mixed opposite") on internet
They are all correct but cause confusion from time to time ...
eg.
0x803E9E
=
hex:9E,3E,07,80

and writing in binary format can be more confusing  :wink:
following previous example 9E bits are in the end or at the begining
 and each 8 bits written with normal or reverse form (requires one need to jump 8 bits when counting .....)

See how bits written with "MessageBox Test" button
eg.
1)
01111001 01111100 11000100 00000001
2)
10000000 00100011 00111110 10011110
3)
10011110 00111110 00100011 10000000
4)
10000000 00100011 00111110 10011110

All 4 are same
1) written following bit no Left to Right
2) written following bit no Right to Left
3) written following 9E,3E,23,80 values with the same order
4) written following 0x80233E9E values with the same order

Bolded one is Bit10 on all cases. :wink:

One can find all kinds of interpretations anywhere on the internet, above is the reason if one can mix (I mixed a lot in the past before creating this plugin)


I had written Call,Math info ~2 years ago if one likes to learn
http://theoven.org/index.php?topic=1463.0
+
Read other info on internet



===>
On Plugin, I use most common interpretation:
 what you see on RegistryEditor for hex value  :thumbsup:
   (eg. "UserPreferencesMask"=hex:9e,1e,07,80,12,00,00,00 )
 and BitNO
which are always same anywhere


and with available "Test" Buttons on "Tweak UserPreferencesMask" Plugin, It is easy to clear any confusion.  :thumbsup:
And I hope new bits will be found quickly this way.  :great:


:turtle:
« Last Edit: May 23, 2020, 01:25:53 AM by Lancelot »

Re: Tweaks (UserPreferencesMask and Others)
« Reply #39 on: May 23, 2020, 09:52:27 AM »

ericgl

  • Jr. Chef
  • **
  • Date Registered: Dec 2015
  • Posts: 71
Lancelot,

I've downloaded Tweak UserPreferencesMask.Script v19.
Will use it in my next build. Thanks!

Keep up the good work.
Cheers  :thumbsup:
« Last Edit: May 23, 2020, 09:52:46 AM by ericgl »

 

Powered by EzPortal