So can I change any color like the title-bar, border, taskbar,
start-button, mouse-pointer or anything else without a need to reboot?
Changing the registry-settings don't get updated until a reboot! Maybe
there is a way to refresh the desktop after changing some
registry-settings... Or maybe with run32dll or control.exe... or do I
need a VB-script?
Thanks!
Try Franks REFRESH.EXE: -
http://home.pe.net/%7Efpw/freeware/
Notifies Windows NT to refresh the desktop or. Useful if you copy icons to
the desktop from a scheduled script. [v1.1] Optionally notifies applications
to refresh their environment.
--
Ritchie
Doesn't update the windows XP theme nor wallpaper or desktop-colors :-(
Why the hell don't you get a macro editor or write a VBS script, instead of
using batch files, you stupid gimp?
--
Finger me: fin...@kadaitcha.ath.cx
I just knocked up a VERY VERY basic no thrills util to set the
wallpaper: -
ftp://ftp.commandline.co.uk/pub/cmdtools/loadwp.zip (1.5kb)
Usage
-----
To set your desktop wallpaper, first of all make sure the
bitmap is in your windows folder (eg c:\winnt or c:\windows).
Then enter: -
loadwp "c:\winnt\wallpaper.bmp"
where c:\winnt is the path to your windows folder and
wallpaper.bmp is your new bitmap.
To clear the wallpaper (set to 'None'), enter: -
loadwp.exe ""
If there's sufficient interest, I'll tart it up a bit.
--
Ritchie
Maybe already done...
C:\UTIL\SetWallpaper>setwallpaper /?
Set Wallpaper version 1.10
Sets the desktop wallpaper and updates the current user profile.
Syntax: setwallpaper [/D:C|T|S] filename.bmp|/R
Examples: setwallpaper C:\Downloads\Pamela.bmp
setwallpaper /D:T C:\Downloads\Carmen.bmp
setwallpaper /r
The last parameter should be either the bitmap filename or /R
An argument of /R will remove the desktop wallpaper.
An argument of /D: allows you to display the image Centered,
Tiled or Stretched.
An argument of /? or -? displays this syntax and always returns 1.
A successful completion will return 0.
Copyright 1999-2000 Marty List, Opti...@usa.net
Although your util may be different...
Hi Mark,
Trust Marty! Thanks for letting me know. I'll move on to
something else - it was only one line anyway.
#include <windows.h>
VOID main(INT argc, PCHAR argv[]) {
if(argc > 1) SystemParametersInfo(SPI_SETDESKWALLPAPER, 0,
argv[1], SPIF_UPDATEINIFILE);
}
--
Ritchie
First of all because the batch file also works under plain dos, before
booting windows, VBS doesn't! The batch swaps between many OS's on
same partition, handels backup, restore, cleanup, encryption and win98
with reg on ramdrive.
Secondly I don't know much about VBS, maybe you could tell me where
and how to start writing a small color-changing/desktop-refreshing
script instead of cursing someone...
I did find a vbs that uses run32dll... and acts like a macro, but then
that could be easialy be disturbed by other progs...
> First of all because the batch file also works under plain dos, before
> booting windows, VBS doesn't! The batch swaps between many OS's on
> same partition, handels backup, restore, cleanup, encryption and win98
> with reg on ramdrive.
> Secondly I don't know much about VBS, maybe you could tell me where
> and how to start writing a small color-changing/desktop-refreshing
> script instead of cursing someone...
> I did find a vbs that uses run32dll... and acts like a macro, but then
> that could be easialy be disturbed by other progs...
Please don't feed the troll.
I tryed manipulating the themes in C:\Windows\Resources\Themes\...
It works but the problem is to set a theme form tha batch file!
When I run test.theme the "display properties" window pops up with the
theme test.theme Only problem is there is still a need to press ENTER
or OK to finally change it. I tried to write a 'enter' into the
keyboard-buffer but that doesn't help. How could I apply and close a
window from dos?
"Mark V" wrote:
>Syntax: setwallpaper [/D:C|T|S] filename.bmp|/R
Where did you get "setwallpaper"?
"Ritchie" wrote:
> #include <windows.h>
> VOID main(INT argc, PCHAR argv[]) {
> if(argc > 1) SystemParametersInfo(SPI_SETDESKWALLPAPER, 0,
> argv[1], SPIF_UPDATEINIFILE);
> }
Where and how should I run or write this...
I'd suggest you use AutoIt from http://www.hiddensoft.com/AutoIt/
> "Mark V" wrote:
> >Syntax: setwallpaper [/D:C|T|S] filename.bmp|/R
>
> Where did you get "setwallpaper"?
I didn't, Mark V did! He's referring to a utility written by Marty List.
> "Ritchie" wrote:
> > #include <windows.h>
> > VOID main(INT argc, PCHAR argv[]) {
> > if(argc > 1) SystemParametersInfo(SPI_SETDESKWALLPAPER, 0,
> > argv[1], SPIF_UPDATEINIFILE);
> > }
> Where and how should I run or write this...
Forget about it, its the C source code of the utility I wrote so you
could change your wallpaper from a batch file. If it was of any use
to you, you'd already know how to 'run' it. Stick with AutoIt!
--
Ritchie
Thanks Ritchie, I'll have a look at it, although I would prefer to
find a way to use the standard xp, dos or scripting tools instead of
needing extra soft.
> Please don't feed the troll.
Tou fucking idiot.
--
Finger me: fin...@kadaitcha.ath.cx
[ ]
>
> "Mark V" wrote:
>>Syntax: setwallpaper [/D:C|T|S] filename.bmp|/R
>
> Where did you get "setwallpaper"?
http://www.optimumx.com/
Downloads. Good stuff!
I see you want a system color change (eg Active Border) so as to "see"
the change when an app is fullscreen. Otherwise I have another useful
technique that will change the icon used by any shortcut you have on
the Desktop. Guess what? It uses shortcut.exe from the same source as
above. Nice visual indicator of "state" for certain functions such as
"HOSTS is Active" / "HOSTS is Disabled".
AutoIT may do what you want. I don't know.
For Windows XP the colors are set by *.themes files. To change the
active-title-bar color, make a copy of
C:\Windows\Resources\Themes\Windows Classic.theme to for example
new.theme, change some settings in it, delete or change the name in
that file (DisplayName=@themeui.dll,-2016)
To copy Windows Classic.theme without the name in it use:
------- on 1 line ! ---------
TYPE "C:\Windows\Resources\Themes\Windows Classic.theme" | FIND/I /V
"DisplayName" >C:\Windows\Resources\Themes\new.theme
-----------------------------
Finally activate it with a small VBS which can be made from a bach
file using:
-----------------------------
>settheme.vbs echo set shell=createobject("wscript.shell")
>>settheme.vbs echo set shell=createobject("wscript.shell")
>>settheme.vbs echo shell.run
"""C:\Windows\Resources\Themes\New.theme"""
>>settheme.vbs echo WScript.Sleep 1000
>>settheme.vbs echo shell.sendkeys "{ENTER}"
>>settheme.vbs echo wscript.quit
start/w settheme.vbs
-----------------------------
Thank you all ;-)
Color changes in the registry are not automaticly updated and will
show up after reboot. To do that from a bachfile use:
-----------------------------
>$SetColor.reg echo Windows Registry Editor Version 5.00
>>$SetColor.reg echo [HKEY_CURRENT_USER\Control Panel\Colors]
>>$SetColor.reg echo "ButtonFace"="172 32 32"
start/w REGEDIT /S $SetColor.reg
-----------------------------
full Windows XP classic color-list:
[HKEY_CURRENT_USER\Control Panel\Colors]
"ActiveBorder"="212 208 200"
"ActiveTitle"="10 36 106"
"AppWorkSpace"="128 128 128"
"Background"="58 110 165"
"ButtonAlternateFace"="181 181 181"
"ButtonDkShadow"="64 64 64"
"ButtonFace"="128 64 64"
"ButtonHilight"="255 255 255"
"ButtonLight"="212 208 200"
"ButtonShadow"="128 128 128"
"ButtonText"="0 0 0"
"GradientActiveTitle"="166 202 240"
"GradientInactiveTitle"="192 192 192"
"GrayText"="128 128 128"
"Hilight"="10 36 106"
"HilightText"="255 255 255"
"HotTrackingColor"="0 0 128"
"InactiveBorder"="212 208 200"
"InactiveTitle"="128 128 128"
"InactiveTitleText"="212 208 200"
"InfoText"="0 0 0"
"InfoWindow"="255 255 225"
"Menu"="212 208 200"
"MenuText"="0 0 0"
"Scrollbar"="212 208 200"
"TitleText"="255 255 255"
"Window"="255 255 255"
"WindowFrame"="0 0 0"
"WindowText"="0 0 0"
"MenuHilight"="49 106 197"
"MenuBar"="236 233 216"