scila1996 Posted October 5, 2015 Share Posted October 5, 2015 I've written a program and some edit registry keys , I don't know which method or fuction to refresh windows explorer (do not refresh desktop). example change font size or desktop wallpaper v.v...Thank you for reading and reply ! Link to comment Share on other sites More sharing options...
ahmeddzcom Posted October 6, 2015 Share Posted October 6, 2015 (edited) This can help :when you want change Wallpaper Desktop you need refresh :_ChangeWallpaper(@DesktopDir&"/image.jpg",1) Func _ChangeWallpaper($sFile,$iType) If Not FileExists($sFile) Then SetError(1) Return -1 EndIf If StringTrimLeft($sFile,StringInStr($sFile,'.',0,-1)) <> 'jpg' Then SetError(2) Return -2 EndIf Select Case $iType = 1 RegWrite('HKCU\Control Panel\Desktop','TileWallpaper','reg_sz','0') Case Else EndSelect RegWrite('HKCU\Control Panel\Desktop','Wallpaper','reg_sz',$sFile) DllCall("User32.dll","int","SystemParametersInfo","int",20,"int",0,"str",$sFile,"int",0) Return 0 EndFunc Edited October 6, 2015 by ahmeddzcom scila1996 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now