Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - VBS to set system colors

Reply
 
Old 10-19-2009   #1 (permalink)
Keith


 
 

VBS to set system colors

I would like to create a simple VBS script to set my system colors (primarily
the window title bar color). Any ideas?

Thanks@

My System SpecsSystem Spec
Old 10-19-2009   #2 (permalink)
mayayana


 
 

Re: VBS to set system colors

If you look in the Registry under this key:
HKCU\Control Panel\Colors\
you'll find a number of names. For instance, the
active title bar color is the value "ActiveTitle".
The data is an RGB value formatted as a
string with spaces, so it's like R G B. You
just have to calculate those values and format
the string.

(This info. is for Win95 ->XP. I assume Vista/7
is the same, but I'm not certain. Also, there are issues
with writing to the Vista/7 64 Registry. 64-bit Windows
basically has 2 Registries, which can make things
very complicated in some cases.

Quote:

> I would like to create a simple VBS script to set my system colors
(primarily
Quote:

> the window title bar color). Any ideas?
>
> Thanks@

My System SpecsSystem Spec
Old 10-19-2009   #3 (permalink)
Richard Mueller [MVP]


 
 

Re: VBS to set system colors


"mayayana" <mayaXXyana@newsgroup> wrote in message
news:OwFxPsNUKHA.4364@newsgroup
Quote:

> If you look in the Registry under this key:
> HKCU\Control Panel\Colors\
> you'll find a number of names. For instance, the
> active title bar color is the value "ActiveTitle".
> The data is an RGB value formatted as a
> string with spaces, so it's like R G B. You
> just have to calculate those values and format
> the string.
>
> (This info. is for Win95 ->XP. I assume Vista/7
> is the same, but I'm not certain. Also, there are issues
> with writing to the Vista/7 64 Registry. 64-bit Windows
> basically has 2 Registries, which can make things
> very complicated in some cases.
>
>
Quote:

>> I would like to create a simple VBS script to set my system colors
> (primarily
Quote:

>> the window title bar color). Any ideas?
>>
>> Thanks@
>
I see the same registry settings on my Vista machine. I believe users can
write to HKCU on Vista computers. If normal users (non-admin) attempt to
write to HKLM, Vista may let you believe it happened, but it actually writes
to a virtual hive in HKCU.

--
Richard Mueller
MVP Directory Services
Hilltop Lab - http://www.rlmueller.net
--


My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
colors Vista General
COLORS 2 Vista General
Colors Vista General
GUI colors AWFUL Live Mail
Windows Mail Stationery Stopped Working, Also Font colors and background colors... Vista mail


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46