MSFN Forum: how is a theme "called" - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

how is a theme "called" Rate Topic: -----

#1 User is offline   MCT 

  • MSFN Junkie
  • PipPipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 3,288
  • Joined: 19-May 04

Posted 21 December 2004 - 11:52 PM

when u select a them manually & apply it, it instantly changes, how can i do this unattended ? not neccessarly threw an unattended setup of windows, but maybe threw a batch file run on user logon or something :D

thanks


#2 User is offline   Vadikan 

  • MSFT MVP Windows Expert: Consumers
  • PipPipPip
  • Group: Members
  • Posts: 349
  • Joined: 22-February 04
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 22 December 2004 - 02:22 AM

MCT
Your question has me ;-) I don't know the answer, but would like to know it too :) I was messing with desk.cpl, but could figure out how to launch the theme. This page has a reference on Control Panel applets. It even has a command for installing the screensaver
rundll32.exe desk.cpl,InstallScreenSaver "File"
I tried to use a similar command with InstallTheme (just off the top of my head), but no go ;-)

I know regional settings can be set from
rundll32.exe shell32,Control_RunDLL intl.cpl,,/f:"c:\regopts.txt"
, but I don't know where to find the info on the switches either.


#3 User is offline   gunsmokingman 

  • MSFN Master
  • Group: Super Moderator
  • Posts: 2,020
  • Joined: 02-August 03
  • OS:none specified
  • Country: Country Flag

Posted 22 December 2004 - 04:25 AM

Add That In Winnt.sif
[Shell] 
    CustomDefaultThemeFile=%systemdrive%\WINDOWS\Resources\Themes\MCBlue2.theme

I have That As My Last Entry The Theme Must Be There In That Location
For It To Work.
To Get It There I Have Made A Winrar.exe That Runs From
cmdlines.txt
[COMMANDS]
"REGEDIT /S 000.reg"
"REGEDIT /S 020.reg"
"REGEDIT /S 040.reg"
"REGEDIT /S 060.reg"
"REGEDIT /S 080.reg"
"Theme.cmd"
"RunOnceEx.cmd"

Which Runs This Batch File
mode con: Cols=37 Lines=6
color 4f
echo.
echo  Adding The Custom Themes
echo.
echo  GsmGrey MCBlue2 Royale
echo.
start /w Themes.exe


#4 User is offline   MCT 

  • MSFN Junkie
  • PipPipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 3,288
  • Joined: 19-May 04

Posted 22 December 2004 - 04:32 AM

i know how 2 do it from winnt.sif but im wondering how to "Call" it :D

#5 User is offline   Tsunami 

  • Member
  • PipPip
  • Group: Members
  • Posts: 292
  • Joined: 05-March 04

Posted 22 December 2004 - 08:06 AM

This is a command that I got with 2 minutes of searching Google :) (I didn't test it though):

rundll32.exe shell32.dll,Control_RunDLL desk.cpl desk,@Themes /Action:OpenTheme /File:"<theme file>"


Edit: nevermind, this is the same command that runs when you double-click a theme-file, so it still opens the Display Properties. The topic I found it in talks about using an AutoIt/VBS script to send keys to the window, so you can let it press OK.

#6 User is offline   Yzöwl 

  • Wise Owl
  • Group: Super Moderator
  • Posts: 4,195
  • Joined: 13-October 04
  • OS:Windows 7 x64

Posted 22 December 2004 - 08:57 AM

Can you not just use change the registry key in a cmd script, and perhaps killing explorer.exe and then restarting it again.

try this key:
REG ADD HKCU\Software\Microsoft\Windows\CurrentVersion\ThemeManager /v DllName /t REG_EXPAND_SZ /d "%SystemRoot%\Resources\Themes\ForeverBlue.Theme" /f


Obviously changing the .Theme file name to suit

#7 User is offline   MCT 

  • MSFN Junkie
  • PipPipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 3,288
  • Joined: 19-May 04

Posted 22 December 2004 - 09:06 AM

@Tsunami
thx for the effort :)

@Yzöwl
Didnt work

there has to be a way cuz there are different things out there that run a command & apply the theme instantly :( lol

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy