Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^2: set windows background picture

by pg (Canon)
on Jul 12, 2004 at 19:33 UTC ( [id://373702] : note . print w/replies, xml ) Need Help??


in reply to Re: set windows background picture
in thread set windows background picture

Thanks roju for all your helps, including those chats you sent me.

For your update 2, It still does not work for me even with active desktop disabled.

For update 1, I looked at the source code for Win32::Wallpaper, and made up this to mimic it:

use strict; use warnings; use Win32::API; my $SystemParametersInfo = new Win32::API(qw(user32 SystemParametersIn +foA NNPN N)) || die $^E; $SystemParametersInfo->Call( 20, 0, "c:\\perl582\\bin\\yahoo.bmp",1 ) +|| die $^E;

Unfortunately it still does not work. But yes, I agree with you, my source code was most likely alright. Something is wrong ;-)

Replies are listed 'Best First'.
Re^3: set windows background picture
by danielcid (Scribe) on Jul 12, 2004 at 19:48 UTC

    I tested here in a Win 2000 and it didn't work also...
    (so it is not only you :))
Re^3: set windows background picture
by elwarren (Priest) on Jul 12, 2004 at 20:53 UTC
    I really really really hate this answer, but did you try rebooting? I remember seeing code up here to change the wallpaper and thinking it was very cool, only to find that the change was not effected immediately.