kof94 Posted November 10, 2006 Posted November 10, 2006 (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 !Thanks. Edited November 10, 2006 by kof94
XPero Posted November 10, 2006 Posted November 10, 2006 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"
kof94 Posted November 10, 2006 Author Posted November 10, 2006 Thanks, but how do you set the wallpaper and screen saver as well?
XPero Posted November 10, 2006 Posted November 10, 2006 WriteRegStr HKCU "Control Panel\Desktop" "SCRNSAVE.EXE" "%SYSTEMROOT%\system32\XPize.scr"I change wallpaper using API.
kof94 Posted November 10, 2006 Author Posted November 10, 2006 Thanks again, one last question (can you guess). Do you use a windows internal command or something you've coded yourself?
XPero Posted November 10, 2006 Posted November 10, 2006 I call user32.dll API functions to set wallpaper on the fly as Windows does.
kof94 Posted November 10, 2006 Author Posted November 10, 2006 (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 November 10, 2006 by kof94
XPero Posted November 10, 2006 Posted November 10, 2006 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'
kof94 Posted November 11, 2006 Author Posted November 11, 2006 Thank you very much .I just spent the last ten minutes looking for the function with Dll Export Viewer, not easy .Well I think thats all I need.Keep up the good, your a true professional XPero.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now