The MASM Forum Archive 2004 to 2012

General Forums => The Workshop => Topic started by: Ar-ras on May 08, 2006, 08:44:50 PM

Title: Wallpaper Changer
Post by: Ar-ras on May 08, 2006, 08:44:50 PM
A little Program, which I wrote for a buddy

You add the jpg you desire to the resourcefile

You can modify it per changing data in the resourcefile

I used two routines of donkeys Graphics.lib and , thank to him
RegistryFunctions of vkim


how it works:
1. Changing the HKEY_CURRENT_USER\Control Panel\Desktop\WallpaperStyle to 0 (center the wallpaper, or if you like 2 for stretched)
2. Extract the jpg to C:\Install.jpg
3. PicturefromFile
4. SaveDIB32
5. invoke SystemParametersInfo, SPI_SETDESKWALLPAPER

Sorry for forgetten copyrights credits:P

to do if you like:
working with ram, not working with the jpg on the harddisk...


[attachment deleted by admin]
Title: Re: Wallpaper Changer
Post by: six_L on May 09, 2006, 02:07:47 AM
You are a PURE AND SIMPLE AND FAMILY horriblor.
:P
Title: Re: Wallpaper Changer
Post by: hutch-- on May 09, 2006, 02:19:41 AM
Ar-ras,

I tried to build it but I don't have a copy of Vortex's bin2o handly and could not find it on is website. Could you post your copy so I can build the example ?
Title: Re: Wallpaper Changer
Post by: Ar-ras on May 09, 2006, 03:03:08 AM
Oh Hutch, my fault
You don't need the bin2o
I used it for a test and forgot to kill the line from the make.bat
But it should compile and link well

@six_L
my english is not so good... I can't understand your sentence

The Program shows how to convert a jpg to a bmp and set the bmp as a wallpaper...

I don't take any credits
Title: Re: Wallpaper Changer
Post by: asmGhost on May 09, 2006, 03:15:34 AM
Oh Man!!! what did you do to ELMO!!!!   :eek
Title: Re: Wallpaper Changer
Post by: Ar-ras on May 09, 2006, 03:24:37 AM
Quote from: six_L on May 09, 2006, 02:07:47 AM
You are a PURE AND SIMPLE AND FAMILY horriblor.
:P

Quote from: asmGhost on May 09, 2006, 03:15:34 AM
Oh Man!!! what did you do to ELMO!!!!   :eek

Do you mean the suicide of elmo :P
If so, I misunderstood you six_L :)

I wanted to help elmo, I did everything I could but he was too fast  :(
Title: Re: Wallpaper Changer
Post by: six_L on May 09, 2006, 08:59:35 AM
Next update, replace with this.

[attachment deleted by admin]