pg has asked for the wisdom of the Perl Monks concerning the following question:
I thought this would change my windows background picture to yahoo.gif. The image exists in \perl582\bin directory, as well as the perl script:
use strict; use warnings; use Win32::API; my $api = Win32::API->new('user32', 'SystemParametersInfo', ['I', 'I', + 'P', 'I'], 'I') || die 'failed\n'; print $api->Call(20, 0, "yahoo.gif", 3);
But it didn't...
Please help, thanks.
Update:Forgot to mention, this is windows 2000, and the return code printed was zero.
Update 2:Didn't work even if I specify the full path of the picture.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: set windows background picture
by roju (Friar) on Jul 12, 2004 at 15:40 UTC | |
by pg (Canon) on Jul 12, 2004 at 19:33 UTC | |
by danielcid (Scribe) on Jul 12, 2004 at 19:48 UTC | |
by elwarren (Priest) on Jul 12, 2004 at 20:53 UTC | |
by pg (Canon) on Jul 12, 2004 at 15:50 UTC | |
|
Re: set windows background picture
by jacques (Priest) on Jul 12, 2004 at 22:16 UTC | |
|
Re: set windows background picture
by pg (Canon) on Jul 13, 2004 at 02:30 UTC | |
|
Re: set windows background picture
by bart (Canon) on Jul 13, 2004 at 11:04 UTC |