Eustace said:
Is there any way to create a shortcut to apply a theme? If you click a
theme.theme file it brings up the dialog and you have to click Apply
or OK. Is there any way to avoid that extra step?
Scripting it using Windows Script Host would be one way.
The following script (paste the code between the stars into notepad and
save with a .vbs extension) should do it for a theme path you specify in
line 2.
[Watch out for word wrap on line 2 - path all on one line]
'******************************************************************
Set WshShell = WScript.CreateObject("WScript.shell")
Theme = "C:\Documents and Settings\USERNAMEHERE\My
Documents\Themes\NAMEOFTHEME.theme"
runstring = chr(34) & Theme & chr(34)
WshShell.Run runstring
'Activate the window
counter = 600
activated = false
do
activated = WshShell.AppActivate("Display Properties")
wscript.sleep 100
counter = counter - 1
if counter = 0 then
wscript.quit
end if
loop until activated = true
wshshell.sendkeys "{ENTER}"
'***************************************************************