Quantcast
Channel: AutoHotkey Community
Viewing all articles
Browse latest Browse all 579

Ask for Help (v1) • Re: AHK Wallpaper Change doesn't persist

$
0
0
You can try to use 0x0003 as last parameter (fWinIni), this is the script i use on win10/11 .

DllCall("SystemParametersInfo", uint, 0x0014, uint, 0x0000, str, sfile, uint, 0x0003)

https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-systemparametersinfoa?redirectedfrom=MSDN

SPIF_SENDWININICHANGE = 2
SPIF_UPDATEINIFILE = 1


[optional] If a system parameter is being set, specifies whether the user profile is to be updated, and
if so, whether the $WM_SETTINGCHANGE message is to be broadcast. This parameter can be zero if you don't want
to update the user profile or it can be one or more of the following values:
$SPIF_UPDATEINIFILE - Writes the new setting to the user profile
$SPIF_SENDCHANGE - Broadcasts the $WM_SETTINGCHANGE message after updating the user profile

Statistics: Posted by noname — Today, 09:08



Viewing all articles
Browse latest Browse all 579

Trending Articles