I've used Autohotkey for many years and really love it. I've joined this forum only a couple of weeks ago and have already received some wonderful help and tips, thanks!!!
I'm looking for code to change the Windows 7 theme automatically. This is the only thing I've never been able to do in my little Autohotkey Postinstall thingy (which is just a simple program with lots of setup /S [silent] installs, registry settings, ini copying, etc. etc.).
This is what I'm doing now:
Code: Select all
runwait,c:\Windows\System32\rundll32.exe c:\Windows\System32\shell32.dll`,Control_RunDLL c:\windows\system32\desk.cpl desk`,@Themes /Action:OpenTheme /file:"c:\windows\resources\ease of access themes\classic.theme"
winwait,Personal settings [translated back from my local text]
sleep,1000
msgbox,4096,Classic Theme,Hit Enter when the Classic Theme is set
winactivate,Personal settings
send,!{f4}
return
I've also tried to modify the Windows 7 install.wim file to have the Classic Theme in there by default, but that's not an easy task. If there's a way to do this ("silently") in Autohotkey, that would be great...
Thanks again to everybody on this great forum, and thanks to the Autohotkey developers!!