Disable certain Windows Visual Effects Settings?

You need help to start using UVK? You have a doubt on a UVK feature? Post here!
Forum rules
We have no special rules for UVK forums. Just try to be polite and clear in your posts.
Please don't post spam in this forum. Spammers will be banned by IP, e-mail and username.
We reserve the right to delete all posts and ban all users we consider not having respected these rules without warning.
Post Reply
Posts: 13
Joined: Tue May 29, 2012 6:44 am

Disable certain Windows Visual Effects Settings?

Post by netmonk99 »

Is there any way use UVK scripts to disable certain Visual Effect settings in Windows (see attached picture)? I'm looking for ways to further speed up the optimization process in our shop.

Untitled.gif (46.9 KiB) Viewed 9103 times
Site Admin
Posts: 2322
Joined: Sat Jul 30, 2011 12:05 pm
Location: Red coast, France

Re: Disable certain Windows Visual Effects Settings?

Post by Fred »

The settings you see in the Visual effects tab are saved in several places in the registry:

Code: Select all

;0 = Let Windows choose what's best for my computer
;1 = Adjust for best appearance
;2 = Adjust for best performance
;3 = Custom

;Use visual styles on windows and buttons (0=off 1=on)

;The following values set glass transparency and arero for windows

;Use common tasks in folders (0=off 1=on)

;Show translucent selection rectangle (0=off 1=on)

;Use drop shadows for icon labels on the desktop (0=off 1=on)

;Use a background image for each folder type (0=off 1=on)

;Slide taskbar buttons (0=off 1=on)

[HKCU\Control Panel\Desktop\WindowMetrics]
;Animate windows when minimizing and maximizing (0=off 1=on)

[HKCU\Control Panel\Desktop]
;Show window contents while dragging (0=off 1=on)

;Smooth edges of screen fonts (0=off 2=on)

;Smooth scroll list boxes
;Slide open combo boxes
;Fade or slide menus into view
;Show shadows under mouse pointer
;Fade or slide tooltips into view
;Fade out menu items after clicking
;Show shadows under menus
;(All off = 90,12,01,80   All on = 9e,3e,05,80)
This last entry deserves some elaboration. UserPreferencesMask uses a 4 byte entry to hold the values for 7 different visual effects, and a few other options. If we expand this 4 byte hex entry into binary, we get
1001ABC0 00D1EF10 00000G01 10000000
where bits A - G are used for the following visual effects using 0=off and 1=on
A = Smooth scroll list boxes
B = Slide open combo boxes
C = Fade or slide menus into view
D = Show shadows under mouse pointer
E = Fade or slide tooltips into view
F = Fade out menu items after clicking
G = Show shadows under menus

For example:

Code: Select all

1001ABC0 00D1EF10 00000G01 10000000
10010000 00010010 00000001 10000000 = 90 12 01 80 (all off)
10011110 00111110 00000101 10000000 = 9e 3e 05 80 (all on)
10010000 00110010 00000101 10000000 = 90 32 05 80 (mouse and menu shadows)
I think the easiest way is to configure the effects manually, export the 6 registry keys below, and then use one of the methods I explained in your Add / merge a registry file topic to import them back.

HKEY_CURRENT_USER\Control Panel\Desktop

  • Messing with the registry can cause serious damages to your system. If you're not sure of what you're doing, don't do anything.

    If you're using the UVK immunization, you must un-immunize the Desktop and Explorer registry entries sections before running the script. You can do it within the script with the command <ImunizeSystem>, which will in-immunize all sections.
Hope it helps.
The only thing we humans have in common is that we are all different. So, if you think you're weird because you're different from everyone else, then we are all weird.

Posts: 1
Joined: Wed Jul 24, 2019 8:13 am

Re: Disable certain Windows Visual Effects Settings?

Post by Shikha2 »

looking for same information...
netmonk99 is this helpful solution...?
vfx studio
Posts: 1
Joined: Tue Sep 17, 2019 9:15 am

Re: Disable certain Windows Visual Effects Settings?

Post by Utam7623 »

Thanks for sharing...
Post Reply