Navigation
1 user online | 1 Guest and 0 Registered
Most popular FAQs 
- The requested lookup key was not found in any ... (7018 views)
- You cannot delete a file or a folder on ... (6134 views)
- How can I solve the code purple eror for ... (5123 views)
- You get prompted for installation source on Globalroot device ... (4172 views)
- Element not found" when attempting to add a Search ... (3924 views)
- My internet stopped working after installing IE 7 or ... (3720 views)
- How to clean up the dot net installations (3150 views)
- How do I fix spell checking in Outlook Express ... (3045 views)
- How do I Show Hidden Files and Folders (2816 views)
- How do you restore the Recycle Bin onto the ... (2777 views)
Latest FAQs 
- xTuple installer file not found /tmp/postgresql-9.1.2-1-linux-x64.run (2013-04-04 09:05)
- How do I install a .run file in linux ... (2013-04-04 09:04)
- You cannot delete a file or a folder on ... (2012-03-16 23:24)
- How can I change the current theme in XP ... (2012-03-16 23:10)
- BDE is currently running (2012-01-10 03:10)
ID #1024
How can I change the current theme in XP using Autoit?
i.e.; unzipped Royale will have a Royale folder with Resources and Web Folders. These correspond with the same folders in your windows directory: c:\windows\Resources & c:\windows\web.
This Autoit script snippet will do the trick:
;install Royale Theme if XP
if @OSVersion = "WIN_XP" Then
$source = "yourfilelocation\Royale"
$dest = @WindowsDir
DirCopy($source, $dest, 1)
Run(@COMSPEC & " /c " &"%windir%\resources\themes\Royale.Theme","",@SW_HIDE)
WinWait("Display Properties", "",3)
Send("{ENTER}")
EndIf
This is simpler than what I found out there even on Autoit forums. They tried calling dlls to do this, but is unnecessary as Windows already knows how to open up a .theme file. THE Run(@COMSPEC & " /c " &"%windir%\resources\themes\Royale.Theme","",@SW_HIDE) COMMAND is simpler as it calls the .theme file you need which windows launches the display property, changes the theme to that one in the command, then you can manually click OK or use the send {Enter} as in the snippet above.
Tags: -
Related entries:
- What's the difference between memory and a hard drive?
- Windows update wont install dot net
- Post Windows XP SP2 Update Failure
- My internet stopped working after installing IE 7 or IE8
- You cannot delete a file or a folder on an NTFS file system volume
You can comment this FAQ