I'm trying to get this one going, but runwait wont make it.
Any ideas on how to change the line?
RunWait rundll32.exe %SystemRoot%\system32\shell32.dll,Control_RunDLL %SystemRoot%\system32\desk.cpl desk,@Themes /Action:OpenTheme /file:"C:\Windows\Resources\Ease of Access Themes\classic.theme"
By reading the instructions I came up with this line, it loads the desk.cpl but not the action of changing theme.
Run rundll32.exe shell32.dll`,Control_RunDLL desk.cpl %SystemRoot%\system32\desk.cpl desk,@Themes /Action:OpenTheme /file:"C:\Windows\Resources\Ease of Access Themes\classic.theme"
Change Theme with RunDll32
Re: Change Theme with RunDll32
You haven't said what version of Windows you're running, so I'll take the liberty of assuming Windows 10 with the Creators Update. If that is the case, then you're not actually doing anything wrong - support for the OpenTheme action was seemingly removed in the latest update; here's a quick comparison of 10's desk.cpl with Windows 7's:
You can do (easier):
Run C:\Windows\Resources\Ease of Access Themes\classic.theme
or
assuming you're not tmp, try my code here: https://autohotkey.com/boards/viewtopic ... 548#p91548. Yes, it makes use of an undocumented interface, but that, unlike asking desk.cpl, still continues to work from Windows 7 to the current version of Windows 10...
See - no results with Windows 10's desk.cpl.[Me@Wintermute ~] λ strings C:\Windows\System32\desk.cpl | grep OpenTheme
[Me@Wintermute ~] λ strings C:\Users\Me\Desktop\desk.cpl | grep OpenTheme
/Action:OpenTheme
You can do (easier):
Run C:\Windows\Resources\Ease of Access Themes\classic.theme
or
assuming you're not tmp, try my code here: https://autohotkey.com/boards/viewtopic ... 548#p91548. Yes, it makes use of an undocumented interface, but that, unlike asking desk.cpl, still continues to work from Windows 7 to the current version of Windows 10...
Who is online
Users browsing this forum: scriptor2016 and 211 guests