Const $WM_SETTINGCHANGE = 0x001A
Const $HWNDBROADCAST = 0xFFFF
Const $szParam = "Environment"
DllCall("user32.dll", "int", "SendMessage", _
"hwnd", $HWNDBROADCAST, _
"int", $WM_SETTINGCHANGE, _
"int", 0, _
"int", $szParam)
Run("rundll32 user32.dll,UpdatePerUserSystemParameters")