Jump to content


Photo

System Color Dll


  • This topic is locked This topic is locked
4 replies to this topic

#1 Bram Buurlage

Bram Buurlage

    GMC Member

  • New Member
  • 51 posts

Posted 04 January 2008 - 10:42 AM

i wrote my first dll.
with it, you can change and get the windows colors
(like the background color, the MDI background and much more)

download link:
Posted Image Posted Image

functions:
color_init(dllname) initializes the dll
set_color(index,r,g,b ) sets color index to r,g,b
get_color(index) gets the color index

the indices can be found by pressing F1 in the example.
the dll is also include with the gmk

please feedback (and no, i dont have a .gm6, because i dont have gm6)
edit: for solving some errors, go to the include part of the gmk, and delete the dll, and then include the syscolor.dll into the gmk.... forgot to switch "include this file into gmk" on.... :P

Mod edit: Topic closed because links are broken. Topic creator: Report this topic with updated links and we'll re-open it for you.

Edited by FredFredrickson, 30 September 2010 - 10:02 PM.

  • 0

#2 Timmeh

Timmeh

    GMC Member

  • New Member
  • 358 posts

Posted 04 January 2008 - 02:34 PM

There is an error defining the functions in the objects creation event. Other than that it could be cool, not sure what I would use it for but I'm sure someone has a use (heck, I may have to find one just to have an excuse to use it :P)
  • 0
I have started teaching myself C++, and do not use Game Maker regularly any more. You can follow my current project either on my DevBlog or in my topic on the Bay12 forums.

GENERATION 195G: EVERYTIME YOU SEE THIS DIVIDE YOUR MOTHERS MAIDEN BIRTHDAY BY WHAT YOU HAD FOR DINNER LAST NIGHT AND ADD Q. (ANTI-SOCIAL EXPERIMENT)

LINKS: My Script Collection - My Autotile Script - My Random Number Generator - My Process Runner Extension - My Detailed TDS Tutorial

#3 Bram Buurlage

Bram Buurlage

    GMC Member

  • New Member
  • 51 posts

Posted 04 January 2008 - 04:08 PM

really? what then is the error?
i got no error

btw you could use it to create a very real fake winapi :P

Edited by Bram Buurlage, 04 January 2008 - 04:15 PM.

  • 0

#4 K3fka

K3fka

    GMC Member

  • GMC Member
  • 601 posts
  • Version:GM:Studio

Posted 04 January 2008 - 10:41 PM

I have been looking for something like this!
  • 0

#5 K3fka

K3fka

    GMC Member

  • GMC Member
  • 601 posts
  • Version:GM:Studio

Posted 09 January 2008 - 12:33 AM

Still getting an error.
I'll PM you with the details.
  • 0