win10 wallpaper style hotkey

Post your working scripts, libraries and tools for AHK v1.1 and older
User avatar
noname
Posts: 515
Joined: 19 Nov 2013, 09:15

win10 wallpaper style hotkey

21 May 2017, 05:15

Ctrl+numpadenter changes/toggles the style from "fit" to "center" (that's all I needed :) ).
It is easy to set the an image in explorer as wallpaper but on my system it is always stretched to fit the desktop and it is a pain to do the extra clicks ..........

Code: Select all

^numpadenter::
RegRead, sfile, HKEY_CURRENT_USER\Control Panel\Desktop, WallPaper
RegRead, style, HKEY_CURRENT_USER\Control Panel\Desktop, WallPaperStyle
style:=style=1?0:1
RegWrite, REG_SZ, HKEY_CURRENT_USER\Control Panel\Desktop, WallPaperStyle ,%style%
if errorlevel
MsgBox, error
DllCall("SystemParametersInfo", uint, 0x0014, uint, 0x0000, str, sfile, uint, 0x0003)
return

Return to “Scripts and Functions (v1)”

Who is online

Users browsing this forum: No registered users and 218 guests