How does one set Font edge smoothing to take effect immediately without restarting! The following registry cannot take effect immediately after import ..

Source: Internet
Author: User
Tags gpupdate

Windows Registry Editor Version 5.00
; Visual settings
[HKEY_CURRENT_USER \ Software \ Microsoft \ Windows \ CurrentVersion \ Explorer \ visualeffects]
"Visualfxsetting" = DWORD: 00000000

 

The following two methods cannot take effect immediately .. However, manual settings take effect immediately... Since we used to do this in the system, we now find that the display font edge is blurred with sertices... Very embarrassing... We are looking for a solution ..
Dllcall ("user32.dll", "int", "sendmessagetimeout", "hwnd", 65535, "int", 26, "int", 0, "int", 0, "int", 0, "int", 1000, "str", "dwresult ")

Do
Processclose ("assumer.exe ")
Until not processexists ("assumer.exe ")
Run ("gpupdate/force", "", @ sw_hide)

# Include <winapi. au3>
Winactivate ("[Class: cabinetwclass]")
_ Winapi_postmessage (controlgethandle ("[Class: cabinetwclass]", "", "syslistview321"), 256,116, 0); refresh my computer
_ Winapi_postmessage (controlgethandle ("[ClassRogman] "," "," syslistview321 "), 256,116, 0); refresh the Desktop

Func _ update_explorer ()
Local $ bold = OPT ("winsearchchildren", true)
Local $ A = winlist ("[Class: shelldll_defview]")
For $ I = 0 to ubound ($ A)-1
Dllcall ("user32.dll", "long", "sendmessage", "hwnd", $ A [$ I] [1], "int", 0x111, "int ", 28931, "int", 0)
Next
Opt ("winsearchchildren", $ bold)
Endfunc ;==> _ update_explorer

Dllcall ("shell32.dll", "NONE", "shchangenotify", "long", 0x8000000, "int", 0, "PTR", 0, "PTR", 0)

1. Most effective:
Zookeeper er.exe. However, the resource manager is shut down, some windows are closed, and there is no taskbar desktop status. It can take effect, but it is not recommended.

[Copy] [run] [Save]
Do
Processclose ("assumer.exe ")
Until not processexists ("assumer.exe ")

2. Call sendmessagetimeout. Unsatisfactory results.

[Copy] [run] [Save]
Dllcall ("user32.dll", "int", "sendmessagetimeout", "hwnd", 65535, "int", 26, "int", 0, "int", 0, "int", 0, "int", 1000, "str", "dwresult ")

3. Call the Group Policy Refresh setting tool. The test is invalid.

[Copy] [run] [Save]
Run ("gpupdate/force", @ SystemDir)

4. The Registry refresh API is very powerful. Good results

[Copy] [run] [Save]
Dllcall ("shell32.dll", "NONE", "shchangenotify", "long", 0x8000000, "int", 0, "PTR", 0, "PTR", 0)

5. Refresh the Desktop
[Copy] [run] [Save]
Rundll32.exe user32.dll, updateperusersystemparameters

6chinanewxp function, you can refresh the Registry file icon to take effect immediately.

[Copy] [run] [Save]

Myupdatereg ()

Func myupdatereg ()
Global const $ hwnd_broadcast = 0 xFFFF
Global const $ wm_settingchange = 0x1a
Dllcall ("user32.dll", "int", "sendmessage", "hwnd", $ hwnd_broadcast, "int", $ wm_settingchange, "int", "", "int ", "")
Endfunc

 

After testing, you can use the following APIs:
Dllcall ('user32. dll ', 'dword', 'systemparametersinfo', 'dword', 75, 'dword', 1, 'dword', 2, 'dword', 0x1)
Reserved Words for backup !!!!

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.