Jump to content

How to set a "modified" theme


Recommended Posts

Posted (edited)

XPero, what reg settings (if any) do you use to set a "modified" theme instead of using a .theme file with XPize.

I've search for an answer but can't find one, I've also tried a host of reg settings but nothing seams to stick.

I'm most interested in how to set the wallpaper and screen saver as I haven't found any good settings for these.

I know this isn't exactly XPize related but I thought I'd probably get a useful answer in this forum :D !

Thanks.

Edited by kof94

Posted

This is the XPize code:

SetRebootFlag true
SetOverwrite off
SetOutPath "$RESOURCES\Themes"
File /r "Extras\Skins\Luna Royale"
WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\ThemeManager" "WCreatedUser" "1"
WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\ThemeManager" "LoadedBefore" "0"
WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\ThemeManager" "ThemeActive" "1"
WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\ThemeManager" "ColorName" "NormalColor"
WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\ThemeManager" "SizeName" "NormalSize"
WriteRegExpandStr HKCU "Software\Microsoft\Windows\CurrentVersion\ThemeManager" "DllName" "%SystemRoot%\resources\Themes\Luna Royale\Luna Royale.msstyles"

Posted

WriteRegStr HKCU "Control Panel\Desktop" "SCRNSAVE.EXE" "%SYSTEMROOT%\system32\XPize.scr"

I change wallpaper using API.

Posted

Thanks again, one last question (can you guess).

Do you use a windows internal command or something you've coded yourself?

Posted (edited)

What function call do you use?

And, I gather you'd call it something like this.

rundll32 Shell32.dll,<insert function> <path to image>

Thanks.

Edited by kof94
Posted
System::Call 'user32.dll::SystemParametersInfo(i 20, i 0, t "$WINDIR\Web\Wallpaper\MCE.bmp", i 3) i .r0'
System::Call 'user32.dll::RedrawWindow(i 0, i 0, i 0, i 0x0085) i .r1'

Posted

Thank you very much :thumbup .

I just spent the last ten minutes looking for the function with Dll Export Viewer, not easy :wacko: .

Well I think thats all I need.

Keep up the good, your a true professional XPero.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...