E
Eustace
I have created 2 files to switch between 2 themes, according to earlier
directions from Jon. The one is:
======================================
Set WshShell = WScript.CreateObject("WScript.shell")
Theme = "C:\Documents and Settings\Eustace\My Documents\My White
Theme.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}"
======================================
The other is similar except that it refers to My Blue Theme.theme.
So far so good. I have put shortcuts to the 2 files in the Quick Launch
so I can switch the themes from there. I am wondering, however, whether
instead of 2 shortcuts I could have only 1 file that would:
1. detect the current theme
2. if the current theme is not My White Theme apply My White Theme
3. if the current theme is My White Theme apply My Blue Theme
That shouldn't be too difficult, or am I asking too much, Jon?
Thanks,
Eustace
directions from Jon. The one is:
======================================
Set WshShell = WScript.CreateObject("WScript.shell")
Theme = "C:\Documents and Settings\Eustace\My Documents\My White
Theme.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}"
======================================
The other is similar except that it refers to My Blue Theme.theme.
So far so good. I have put shortcuts to the 2 files in the Quick Launch
so I can switch the themes from there. I am wondering, however, whether
instead of 2 shortcuts I could have only 1 file that would:
1. detect the current theme
2. if the current theme is not My White Theme apply My White Theme
3. if the current theme is My White Theme apply My Blue Theme
That shouldn't be too difficult, or am I asking too much, Jon?
Thanks,
Eustace