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

Tweaks (UserPreferencesMask and Others)
« on: December 05, 2015, 06:12:10 PM »

ericgl

  • Jr. Chef
  • **
  • Date Registered: Dec 2015
  • Posts: 71
I would also like to thank ChrisR, JFX & Lancelot for all their hard work on WinPE builds.
Truly great effort, and I highly appreciate it.

If I could just add a small request here - Please add to the Optimizations:
Remove animation, fade & shadow effects.

Thanks.

Re: Tweaks (UserPreferencesMask and Others)
« Reply #1 on: December 05, 2015, 10:54:05 PM »

ChrisR

  • XPE Baker
  • Grand Chef
  • *****
  • Date Registered: Mar 2011
  • Posts: 3494
Welcome,

For the small request, it is maybe something for the themes plugin.
I'm pretty sure you already have the related registry keys, I will follow you :smile:

Re: Tweaks (UserPreferencesMask and Others)
« Reply #2 on: December 06, 2015, 06:51:07 AM »

ntd

  • Jr. Chef
  • **
  • Date Registered: Nov 2015
  • Posts: 20
Hi ChrisR,

I think this website could provide some useful information about how to change Visual Effects Settings in Registry Editor (animation, fade & shadow effects)/ Option Four:

http://www.tenforums.com/tutorials/6377-visual-effects-settings-change-windows-10-a.html

I am not a coder so I could not help much :(

Re: Tweaks (UserPreferencesMask and Others)
« Reply #3 on: December 06, 2015, 09:13:48 AM »

Atari800xl

  • Code Baker
  • Sr. Chef
  • ****
  • Date Registered: Feb 2013
  • Posts: 827
Well ntd, isn't it funny how things all come together now... I am not a great coder either, but slowly I'm starting to get the picture, I even had some success figuring out that mui problem yesterday.
Another coincidence is that Lancelot added his "Medicine" plugin in the "Build" folder for Win10PESE, and I was trying to understand how that worked and what it did. In it, I saw a mention of the "UserPreferenceMask" entry you mentioned (this was a couple of days ago). I believe that value is only for NT5 (xp, 2003) projects at this time.
So the coincidence is that you now pointed me to a very clearly written tutorial about this on the "tenforums" website. So I tried to put one and one together, and tested if we can "inject" this medicine into NT6 (Windows 10) projects as well.

So just for testing, I modified this file:
Projects\Win10PESE\Build\zm_Project_Medicine.script
Maybe you want to try these changes, let us know what you think. Open the file and goto line 90 (or search for "[Process_NT6]").

Then, add this line after [Process_NT6]:
Code: [Select]
Run,%ScriptFile%,UserPreferencesMask_NT6
Then, goto line 159 (or search for "[UserPreferencesMask_NT5]" and place the cursor below that section, just above "[STORPORT_SYS_NT5]") and copy these lines:

Code: [Select]
[UserPreferencesMask_NT6]
RegHiveLoad,Tmp_Default,%RegDefault%
If,%NoWarnROW%,Equal,True,System,ERROROFF
RegWrite,HKLM,0x4,"Tmp_Default\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects",VisualFXSetting,3
RegWrite,HKLM,0x3,"Tmp_Default\Control Panel\Desktop",UserPreferencesMask,90,10,03,80,12,00,00,00
RegWrite,HKLM,0x4,"Tmp_Default\Control Panel\Desktop\WindowMetrics",MinAnimate,0
RegWrite,HKLM,0x4,"Tmp_Default\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced",TaskbarAnimations,0
RegHiveUnLoad,Tmp_Default

As you can see, these lines contain the registry settings from the TenForums link you provided. I'm sure you can add/ remove or change other settings you like.
As ChrisR said, there may be better places to add these settings, but maybe it's a start for you to begin experimenting.

I'm not sure if I got the UserPreferences settings all correct, I hope Lancelot can take if from here and decide if he wants to include this in the "Medicine" plugin (maybe only the UserPref part) or put it somewhere else (Themes).

Hope to hear from you!

Re: Tweaks (UserPreferencesMask and Others)
« Reply #4 on: December 06, 2015, 12:46:32 PM »

ericgl

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

Here's what I've found so far regarding visual effects of Windows 10:

Set Visual Effects to "Custom" setting (must be set 1st)
Code: [Select]
reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects" /v VisualFXSetting /t REG_DWORD /d 3 /f

Turn off animations, fades, and sliding effects using bit masks
REM The process in charge of adjusting the bit masks is "systempropertiesadvanced.exe" (if you need to filter in Process Monitor)
Code: [Select]
reg add "HKCU\Control Panel\Desktop" /v "UserPreferencesMask" /t REG_BINARY /d 9012038010000000 /f

Disable "Animate windows when minimizing and maximizing". This setting is not included in the bit masks. It has its own key.
Code: [Select]
reg add "HKCU\Control Panel\Desktop\WindowMetrics" /v "MinAnimate" REG_SZ /d 0 /f

Disable "Animations in the taskbar". Default value is 1 (enabled). This setting is not included in the bit masks. It has its own key.
Code: [Select]
reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "TaskbarAnimations" /t REG_DWORD /d 0 /f

Explanation of UserPreferencesMask:
http://s11.postimg.org/5i0j9yelf/Win10_User_Preferences_Mask_explained.png
« Last Edit: December 07, 2015, 12:06:26 AM by Lancelot »

Re: Tweaks (UserPreferencesMask and Others)
« Reply #5 on: December 06, 2015, 12:59:01 PM »

Atari800xl

  • Code Baker
  • Sr. Chef
  • ****
  • Date Registered: Feb 2013
  • Posts: 827
What did I just write...
(did you read my post before yours?)

Re: Tweaks (UserPreferencesMask and Others)
« Reply #6 on: December 06, 2015, 01:03:58 PM »

ericgl

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

Yes, I've read your post before posting mine, but:
Your UserPreferencesMask is a bit different than mine.
I felt that I had to explain the bits using the illustration, which I created by myself for you guys using regedit and Process Monitor (the info on MS website is not great).
Hope it's useful somehow.

Re: Tweaks (UserPreferencesMask and Others)
« Reply #7 on: December 06, 2015, 01:11:41 PM »

ericgl

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

One more thing:
It looks like you have a mistake in UserPreferencesMask in the 4th bit.
From my experiments (using Win10 Eneterprise x64 b10586), the 4th bit can only be set to: 2, 6, a or e. It cannot be set to 0.
At least, I haven't found a setting in the GUI that causes this bit to set to 0.

Re: Tweaks (UserPreferencesMask and Others)
« Reply #8 on: December 06, 2015, 01:17:13 PM »

Atari800xl

  • Code Baker
  • Sr. Chef
  • ****
  • Date Registered: Feb 2013
  • Posts: 827
OK Ericgl, try the script edits I mentioned, see if you feel like the result, and report back.

About the explanation of "UserPreferenceMask", thanks for the picture, but the values you mention can actually be a bit confusing. Each setting has its own bit (0 or 1), and adding up all the separate bits makes up the hex numbers. The TenForums article you mentioned is already a very clear explanation for this!
Like I said, there is an existing plugin for UserPreferenceMask, so we could either put it in there, or else use the Theme script. Lancelot and ChrisR will probably take a look at this soon enough. It's more of a cosmetic thing, so it might take a few weeks for them to take a look at it.
Thanks again for taking the trouble!

EDIT: Sorry, we posted at the same time:

Atari800xl,

One more thing:
the 4th bit can only be set to: 2, 6, a or e. It cannot be set to 0.
You might be confusing bits and hex values here (one hex "letter" is 4 bits). A bit can only be 0 or 1. But I'll look at the values again. Let's just let it rest for a while and wait for a reply from "the coders"!
EDIT2: You are correct, where I mentioned "90 10 03 80", it should be "90 12 03 80".

« Last Edit: December 06, 2015, 01:36:05 PM by Atari800xl »

Re: Tweaks (UserPreferencesMask and Others)
« Reply #9 on: December 06, 2015, 04:58:04 PM »

Lancelot

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

do following:

1
Utils\"Plugin Link Organisations" --> Update Download Packs

2
Downloads\ComponentsY\Tweaks\"Tweak Others" --> Download
Downloads\ComponentsY\Tweaks\"Tweak UserPrefecences" --> Download

3
click refresh button

4
at left tree you will see 2 plugins
ComponentsY\Tweaks\"Tweak Others"
ComponentsY\Tweaks\"Tweak UserPrefecences"



***
Tweak UserPreferences
I gather all userpreferences values I can find inside "Tweak UserPrefecences" plugin,
bit21, 22, 38 from internet forums (links given via plugin)
bit40 already known IMEToolbar, not inside plugin (already at Korean IME plugin)

let us know if you find other bits

***
Tweak Others

We now have a general tweak plugin for other stuff, let us know

....
« Last Edit: December 07, 2015, 08:39:46 PM by Lancelot »

Re: Tweaks (UserPreferencesMask and Others)
« Reply #10 on: December 06, 2015, 04:59:55 PM »

Lancelot

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

for RegBinary math operations, there is already topic available:

Call,Math Info
http://theoven.org/index.php?topic=1463.0

I just added 2 more examples to the bottom  :thumbsup:

*
I will try to catch topic when I find some available time,
 have fun on testing.

:turtle:

Re: Tweaks (UserPreferencesMask and Others)
« Reply #11 on: December 06, 2015, 05:43:48 PM »

Atari800xl

  • Code Baker
  • Sr. Chef
  • ****
  • Date Registered: Feb 2013
  • Posts: 827
Thanks a lot, VERY clear and informative. I'm sure this is exactly what Ericgl is looking for.
 :thumbsup:

Can you please truncate this thread into a new one, starting from Ericgl's request?
Maybe call it "Userpreferencemask plugin request (already available)"
(or something)

Re: Tweaks (UserPreferencesMask and Others)
« Reply #12 on: December 06, 2015, 05:45:14 PM »

ericgl

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

Thanks for the quick work on these plugins  :thumbsup:.

What would happen if I do like in the following screen capture?


I unchecked certain effects, but left the UI effects and VisualEffects Checked.

NOTE: I cannot edit my posts yet, probably due to being new on this forum, so excuse me if I have some mistakes here and there.

Re: Tweaks (UserPreferencesMask and Others)
« Reply #13 on: December 06, 2015, 06:48:07 PM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
Can you please truncate this thread into a new one, starting from Ericgl's request?
When I get back home.  :thumbsup:

Re: Tweaks (UserPreferencesMask and Others)
« Reply #14 on: December 06, 2015, 07:09:28 PM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
What would happen if I do like in the following screen capture?
Let us know.  :thumbsup:

I unchecked certain effects, but left the UI effects and VisualEffects Checked.
Yes, better leave them with their default plugin settings.
 This helps flexibility and control on your preference.

Still:
Info about them available as tooltip.
UI Effect false: disables all ui effects at once regardless bit settings (documented and written interface as bit no).
Visual Effects
 2 disables all visual effects, I don't know if documented. edit: maybe System Properties "Visual Effects" !?
 1 enables all !!!
 0 automatic !!!

I believe Visual Effects value effects userpreferencesmask and other visual settings.. ?!

In passing time, hopefully tweak plugins grow more  with feedbacks and we will have a better bigger picture.

:turtle:
« Last Edit: December 07, 2015, 12:05:15 AM by Lancelot »

Re: Tweaks (UserPreferencesMask and Others)
« Reply #15 on: December 07, 2015, 12:37:11 AM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
*
Topics Splitted
http://theoven.org/index.php?topic=1527
-->
http://theoven.org/index.php?topic=1545
and current http://theoven.org/index.php?topic=1544.0

*
Another coincidence is that Lancelot added his "Medicine" plugin in the "Build" folder for Win10PESE, and I was trying to understand how that worked and what it did. In it, I saw a mention of the "UserPreferenceMask" entry you mentioned (this was a couple of days ago). I believe that value is only for NT5 (xp, 2003) projects at this time.

To clear future confusions, I moved NT6 Userpreferencesmask value to "Medicine" plugin,
it was already at SE with same cure goal behind, only on other plugin, which was added before existance of medicine plugin on all projects.

The initial idea behind Medicine plugin was to put important things that is missing at core build,
(at the end of \Build\ of all projects )
started with STORPORT.SYS requirement on Gena by JFX lots of years ago, I feel before SE....

with same goal, recently Medicine plugin evolved to give medicine to all 5 projects easily,
with now additional goal, maintance is easier by uploading only 1 plugin to all servers with same cure to all projects.  :thumbsup:

*
Run (Win R) --> systempropertiesadvanced.exe
 -> Advanced -> Performance - Settings --> Visual Effects

I guess now we have most of these settings available in either
Tweak UserPreferencesMask or Tweak Others

let me know the missing ones, and reminding I did not test Tweak plugins.... time....



Have fun
:turtle:
« Last Edit: December 07, 2015, 12:37:35 AM by Lancelot »

Re: Tweaks (UserPreferencesMask and Others)
« Reply #16 on: December 07, 2015, 09:14:26 PM »

Lancelot

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

do following:

1
Utils\"Plugin Link Organisations" --> Update Download Packs

2
Downloads\ComponentsY\Tweaks\"Mouse Tweak" --> Download
Downloads\ComponentsY\Tweaks\"Tweak UserPrefecences" --> Download
Downloads\ComponentsY\Tweaks\"Tweak Visual Effect" --> Download

ps: Tweak Others removed

3
click refresh button

4
at left tree you will see 3 plugins
ComponentsY\Tweaks\"Mouse Tweak"
ComponentsY\Tweaks\"Tweak UserPrefecences"
ComponentsY\Tweaks\"Tweak Visual Effect"


***
we can have a "Tweak Others" in future, for "other" settings , for now not required.

***
Tweak UserPreferencesMask
added more values from my old notes,
 this is a plugin to gather all found UserPreferences values,
  As far as I see on google, I believe currently biggest archive ;).

32 values available since nt5 and before (UserPreferenceMask Win9x...)
64 values available since nt6
currently 23 values found, better say 22, one of them seem to be redundant no time to test.... ;)

let me know any other UserPreferencesMask values you find around ...

***
Mouse Tweak
why not ;) , it properly makes Mouse Tweaks, probably some more around.

Some mouse tweaks includes UserPreferencesMask values, and some have additional settings,
 I feel better gather them properly on a Mouse Tweak plugin.

***
Tweak Visual Effect
I feel these are the settings one look around  :wink:
 For a new user, It is easier to tweak with this menu  :cool:


*********
Meaning of "numbers" on settings:

UserPreferencesMask critically important and can be mixed easily....

UserPreferencesMask settings inside Tweak plugins have "bit number" at left or right to define them easily ,
if following with another bit number, it means there is a connection between these values.
ex:
Mouse Tweaks
Checkbox: "Active window tracking Z order 6-0"
--> Active window tracking Z order : UserPreferencesMask Bit6
        , and there is a connection with UserPreferencesMask Bit0
ex:
Tweak Visual Effects
"Tool tip animation 11-12"
--> Tool tip animation : UserPreferencesMask Bit11
   , and there is a connection with UserPreferencesMask Bit12

further info probably on tooltips ....


This would also help having same settings on all plugins if all used ;), just enable or disable same numbered checkboxes.


********
I made plugins in a way one can easily (as much as possible) copy-paste to other settings plugins.




********
me to the already existing downloads/ plugins
Hi Atari800xl,

plugins are new,
 info from them is not,
  they are very mostly from
Gena\Components\Tweaks Explorer\"Tweaks and Setings" plugin.

with having new syntax Call,RegWriteBinaryBit + Call,UploadX this summer ,

It is only now possible to create such seperated Tweak plugins with UserPreferencesMask values,
 life is easier, contrary now having less free time...





********
That's all for now for a while,
I will follow feedbacks,

 life goes :turtle:

Re: Tweaks (UserPreferencesMask and Others)
« Reply #17 on: December 07, 2015, 09:24:10 PM »

Lancelot

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

I hope it is easy to use \Downloads\ plugins, no more ideas to get it simpler,
 and I don't have free time to write a tutorial yet....

** For "already" downloaded plugins, you can use "Create Link"
and "Download" button to download or update as practiced.

once downloaded, with having all projects on same folder (D:\Oven) ,
 you can use "Create Link" on all projects.  :wink:
   no need to download same file again and again.


:turtle:

Re: Tweaks (UserPreferencesMask and Others)
« Reply #18 on: November 30, 2016, 12:25:47 AM »

Prz42

  • Code Baker
  • Sr. Chef
  • ****
  • Date Registered: Jan 2014
  • Posts: 513
Hi Lancelot,
Did really know were it was appropriate to post.
Just wondered if you could incorporate this into you plugin?
Don't need a bunch of small tweaks on projects.

* Run Tweak.Script (14.76 kB - downloaded 144 times.)

Re: Tweaks (UserPreferencesMask and Others)
« Reply #19 on: November 30, 2016, 05:01:21 AM »

Lancelot

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

Did really know were it was appropriate to post.
There is Run MRU plugin already available
http://theoven.org/index.php?topic=416

just updated with your "DO NOT ADD Blank" warning and small things.  :thumbsup:

*
Check all
\Downloads\ComponentsY\
and
\Downloads\TweaksY\
for all available tweaks  :wink:

:turtle:

Edit:
Run MRU plugin on server now v8  :wink:
« Last Edit: November 30, 2016, 05:51:42 AM by Lancelot »

 

Powered by EzPortal