Jump to content


Photo

Wallpaper Dll


  • Please log in to reply
15 replies to this topic

#1 tangibleLime

tangibleLime

    Lunatic

  • GMC Member
  • 2520 posts
  • Version:GM:HTML5

Posted 06 November 2005 - 11:57 PM

Wallpaper DLL

Information
This is a simple DLL that can set the wallpaper of the desktop as centered, stretched, or tiled. It can also get the current wallpaper image file.

Functions
Set Wallpaper
Get Wallpaper

Special Notes
Only BMPs will work with this DLL.

Download
Click Here to Download

Edited by Roach, 09 June 2006 - 12:11 AM.

  • 0

#2 friiks

friiks

    GMC Member

  • New Member
  • 37 posts

Posted 07 November 2005 - 02:28 PM

oooh ;) "The connection was refused when attempting to contact www.roach.x10hosting.com."
  • 0

#3 Zmurf

Zmurf

    GMC Member

  • New Member
  • 81 posts

Posted 08 November 2005 - 11:37 AM

if i change the bg with ur dll, then change it back, then change it again and quit the program, when i start it up again the bg wont change ><
  • 0

#4 hughman

hughman

    GMC Member

  • GMC Member
  • 568 posts

Posted 09 November 2005 - 08:27 PM

yeah I'm having trouble downloading...
  • 0

#5 GmDude66

GmDude66

    GMC Member

  • New Member
  • 348 posts
  • Version:Unknown

Posted 09 November 2005 - 10:09 PM

Not to rip on Roach or anything but,
This can be accomplished using the registry:

//Get Wallpaper
get=registry_read_string_ext("Control Panel\Desktop","Wallpaper")
get_string("Heres The currently Selected Wallpaper:",get)

//Set Wallpaper
set=get_open_filename("Image Files|*.bmp; *.gif; *.png","")
registry_write_string_ext("Control Panel\Desktop","Wallpaper",set)

//Get Wallpaper Mode
style=registry_read_string_ext("Control Panel\Desktop","WallpaperStyle")
if style="0"{show_message("Your Current WallPaper is set to mode 'Centered'")}
if style="1"{show_message("Your Current WallPaper is set to mode 'Tiled'")}
if style="2"{show_message("Your Current WallPaper is set to mode 'Stretched'")}

~Derek~

Edited by GmDude66, 09 November 2005 - 10:14 PM.

  • 0

#6 PJ Games

PJ Games

    NUFC Rulz!

  • New Member
  • 38 posts

Posted 09 November 2005 - 10:14 PM

Using the regestry method is it possible to set it to an html fille or does more have to be changed? I'd do it myself but learnt the hard way not to experim,ent with stuff like this and ASK first :GM6:
PJ
P.S. Roach - did you manage to get anywhere with the bug in the ieaddress DLL? Many thanks - you're great at this!
  • 0

#7 GmDude66

GmDude66

    GMC Member

  • New Member
  • 348 posts
  • Version:Unknown

Posted 09 November 2005 - 10:16 PM

Err...no only image files are supported.

~Derek~
  • 0

#8 celebraces

celebraces

    GMC Member

  • GMC Member
  • 956 posts

Posted 10 November 2005 - 06:03 AM

it doesn't update immediately
  • 0

#9 GmDude66

GmDude66

    GMC Member

  • New Member
  • 348 posts
  • Version:Unknown

Posted 10 November 2005 - 09:43 PM

Yeah that's the only downside with the registry..

~Derek~
  • 0

#10 Edootjuh

Edootjuh

    GMC Member

  • New Member
  • 26 posts

Posted 28 December 2005 - 07:24 PM

just turns the wallpaper into white :D
  • 0

#11 SquareWheel

SquareWheel

    Square Wheel Games

  • New Member
  • 851 posts

Posted 16 November 2006 - 09:52 AM

Please don't be mad about this bump, but I have a problem. It's not that it goes all white, I can fix that. It's that after logging out and back in the background is forgotten. Do I have to save this to the WINDOWS folder or something for it to load again on login?
  • 0

#12 GmDude66

GmDude66

    GMC Member

  • New Member
  • 348 posts
  • Version:Unknown

Posted 16 November 2006 - 11:28 PM

Umm.. using Roach's DLL or my script?
  • 0

#13 WildCard

WildCard

    GMC Member

  • New Member
  • 324 posts

Posted 05 February 2007 - 02:53 PM

How do you get the user's wallpaper, and use it as a background in the game?
  • 0

#14 raving_rabbid

raving_rabbid

    background artist

  • New Member
  • 265 posts

Posted 12 June 2007 - 02:45 PM

this is just what i needed. almost. can it change the background to a random picture from a folder? ill keep messing around with it to see what i can do.
  • 0

#15 nano351

nano351

    GMC Member

  • New Member
  • 330 posts

Posted 24 June 2007 - 04:34 PM

if all the pictures have similar file names you could do it like this:

picture="C:\Program Files\my_pic"+string(floor(random(5))+".png"
this would allow the following pictures to happen
C:\Program Files\my_pic0.png
C:\Program Files\my_pic1.png
C:\Program Files\my_pic2.png
C:\Program Files\my_pic3.png
C:\Program Files\my_pic4.png

so this way it could be done.
  • 0

#16 cswenson1

cswenson1

    CS Games

  • New Member
  • 725 posts

Posted 28 November 2009 - 06:10 PM

Link is dead and this dll is not on your website roach
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users