Jump to content


Photo

Wallpaper Dll


  • Please log in to reply
15 replies to this topic

#1 tangibleLime

tangibleLime

    Lunatic

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

Posted 07 November 2005 - 12:11 AM

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:25 AM.

  • 0
Posted ImagePosted Image

#2 friiks

friiks

    GMC Member

  • New Member
  • 37 posts

Posted 07 November 2005 - 02:42 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:51 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:41 PM

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

#5 GmDude66

GmDude66

    GMC Member

  • New Member
  • 348 posts
  • Version:Unknown

Posted 09 November 2005 - 10:23 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:28 PM.

  • 0

#6 PJ Games

PJ Games

    NUFC Rulz!

  • New Member
  • 38 posts

Posted 09 November 2005 - 10:28 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:30 PM

Err...no only image files are supported.

~Derek~
  • 0

#8 celebraces

celebraces

    GMC Member

  • GMC Member
  • 956 posts

Posted 10 November 2005 - 06:17 AM

it doesn't update immediately
  • 0

#9 GmDude66

GmDude66

    GMC Member

  • New Member
  • 348 posts
  • Version:Unknown

Posted 10 November 2005 - 09:57 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:38 PM

just turns the wallpaper into white :D
  • 0

#11 SquareWheel

SquareWheel

    Square Wheel Games

  • New Member
  • 851 posts

Posted 16 November 2006 - 10:06 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
Cook Console | Editor Engine | Mass File Namer

All of my examples are publicly available and can be found at

#12 GmDude66

GmDude66

    GMC Member

  • New Member
  • 348 posts
  • Version:Unknown

Posted 16 November 2006 - 11:42 PM

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

#13 WildCard

WildCard

    GMC Member

  • New Member
  • 324 posts

Posted 05 February 2007 - 03:07 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:59 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
It has been reported that some victims of torture, during the act, would retreat into a fantasy world from which they could not WAKE UP. In this catatonic state, the victim lived in a world just like their normal one, except they weren’t being tortured. The only way that they realized they needed to WAKE UP was a note they found in their fantasy world. It would tell them about their condition, and tell them to WAKE UP. Even then, it would often take months until they were ready to discard their fantasy world and PLEASE WAKE UP

#15 nano351

nano351

    GMC Member

  • New Member
  • 330 posts

Posted 24 June 2007 - 04:48 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:24 PM

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


My DLL's:
MWin DLL - Message Box DLL - Battery Life DLL

How to: Make a DLL for Game Maker - Part1 | Part2




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users