Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   Set windows wallpaper (http://forums.winamp.com/showthread.php?t=230215)

Flof 5th November 2005 20:55

Set windows wallpaper
 
Hi,

Is it possible to have the nsis set the windows wallpaper in windows xp if the user opt-in to do so?

If not can this be done via a dialog box called from nsis?

Takhir 6th November 2005 05:35

code:
System::Call 'user32.dll::SystemParametersInfo(i 20, i 0, t "$INSTDIR\your.bmp", i 3) i .r0'
System::Call 'user32.dll::RedrawWindow(i 0, i 0, i 0, i 0x0085) i .r1'


This should work on XP. On the Win98 with ActiveDsktop enabled a call to IActiveDesktop require (plug-in).


All times are GMT. The time now is 04:44.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.