Jump to content


Photo

Screencolour Dll


  • Please log in to reply
23 replies to this topic

#1 tsg1zzn

tsg1zzn

    GMC Member

  • New Member
  • 1163 posts
  • Version:Unknown

Posted 09 April 2005 - 11:11 AM

Screencolour Dll
--------------------
by tsg1zzn
http://home.no.net/tsg1zzn/tsg1zzn

A dll to get the colour of the screen at the current
cursor position or at a specified coordinate.


No resposibilites.

The dll was written in Delphi 6. (No, it's NOT bloated)

Download here: http://home.no.net/t...ncolour_dll.zip
24,5 kb, comes with a GM 5.0 example.

This dll does not use the screenshot trick, it uses the screen device handle, so it's faster.

Edited by tsg1zzn, 09 April 2005 - 11:22 AM.

  • 1

#2 bobby2guns2003

bobby2guns2003

    Whateva!

  • New Member
  • 149 posts

Posted 11 April 2005 - 08:56 PM

Thanks, This will help me out in future projects. :)
  • 0

#3 tsg1zzn

tsg1zzn

    GMC Member

  • New Member
  • 1163 posts
  • Version:Unknown

Posted 10 May 2005 - 05:24 PM

Ok, I corrected a SERIOUS bug in getting the colour at a custom position. If you have tried without luck earlier, try again now. :medieval:

Thanks to tropicalfruit79 whoever that is... ::lmao::
  • 0

#4 Matt13

Matt13

    GMC Member

  • New Member
  • 580 posts
  • Version:Unknown

Posted 11 May 2005 - 12:13 AM

Do you think you can make it set a pixel color on the screen along with the get pixel color?

- Matt
  • 0

#5 tsg1zzn

tsg1zzn

    GMC Member

  • New Member
  • 1163 posts
  • Version:Unknown

Posted 11 May 2005 - 11:44 AM

There is already DDCrayon for that.
  • 0

#6 JJProductions

JJProductions

    Agamma Corpus

  • New Member
  • 2211 posts

Posted 11 May 2005 - 08:51 PM

The program is still as sexy as ever :)
  • 0

#7 Pjotrrrrr

Pjotrrrrr

    GMC Member

  • New Member
  • 13 posts

Posted 21 December 2005 - 05:47 PM

Just what I needed, thank you for the great dll!
  • 0

#8 Grantax

Grantax

    GMC Member

  • New Member
  • 75 posts
  • Version:Unknown

Posted 06 August 2006 - 12:31 PM

Thank, this will help me in my current project.
Thank you very much. :huh:
  • 0

#9 Anthony

Anthony

    GMC Member

  • New Member
  • 112 posts

Posted 17 September 2006 - 12:49 PM

Let's bring this one up again... :huh:

Thank you very much, this is indeed what I was looking for!

Ant
  • 0

#10 Ruby

Ruby

    Ruby Software

  • New Member
  • 203 posts

Posted 17 September 2006 - 01:25 PM

Screencolour Dll


Colour??

I think you'd mean color.
  • 0
No longer active on GMC

#11 Schreib

Schreib

    Valen Shadowbreath

  • GMC Member
  • 1458 posts
  • Version:Unknown

Posted 17 September 2006 - 01:51 PM

In brittish, it's colour. In american, it's color. So you are both right.
  • 1
~ Tiefling | DeviantART gallery See my spacescapes!
GM Obfuscator | Protect your games from prying eyes. Get it now!
Motto: Noli turbare axiomates meos!

#12 Ruby

Ruby

    Ruby Software

  • New Member
  • 203 posts

Posted 17 September 2006 - 02:16 PM

Oh :huh:
  • 0
No longer active on GMC

#13 Darth

Darth

    GMC Member

  • New Member
  • 436 posts

Posted 18 September 2006 - 07:25 PM

But the british spelling is better...

Cool DLL btw.
  • 0
Game maker 8 Pro

#14 Clarry

Clarry

    GMC Member

  • New Member
  • 2 posts

Posted 18 September 2006 - 08:21 PM

Looking for this all night. Thanks
Love the British Spelling
Love the Hammer and Sickle as well :P
  • 0

#15 kwifler

kwifler

    GML Code Advisor

  • New Member
  • 207 posts
  • Version:Unknown

Posted 21 November 2006 - 10:35 AM

Very nice : )
_____10 stars out of 10_____
I don't know what you mean about the 'screenshot trick' but this is at least twice as fast as GM's draw_getpixel() function, and unlike the GM function, it can sample more than the area within the window.

This concerns me though:
"Free for non-commercial use. For commercial usage please contact me ..."

(PS, was searching for mouse scroll wheel detection, oh well...)
  • 0
If this isn't one of my topics, I may forget about it. Feel free to PM me about it!
Prove you are out there, PM me Woo hoo! somebody finally PM'ed me for that! 24 people!
GM Mentors List// Extensive Physics Website!!!! // The GameMaker Wiki
My Website(not in summer USA) // Unofficial 39dll Forum
Chat with me in a space ship game! Trench Wars
The only code I ever borrowed was the 39dll external functions, and one for quaternions.

#16 pj357

pj357

    GMC Member

  • New Member
  • 80 posts

Posted 08 December 2006 - 12:21 AM

Is this fast enough for me to take a massive amount of pixels every step or so without much lag? By massive I mean like 50,000 or so.
  • 0

#17 tangibleLime

tangibleLime

    Lunatic

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

Posted 08 December 2006 - 12:24 AM

why would you ever need to get 50k pixels? Yeah, of course it's going to lag, if you're doing it 50,000 times every step??
  • 0
Posted ImagePosted Image

#18 pj357

pj357

    GMC Member

  • New Member
  • 80 posts

Posted 08 December 2006 - 12:29 AM

Not every step, but a lot. I need some way transfer a screenshot over a connection and redraw it, I know this probably isn't the best way to do it but i can't thing of something else.
  • 0

#19 Ussyless

Ussyless

    Objective

  • GMC Member
  • 962 posts
  • Version:Unknown

Posted 08 December 2006 - 02:37 AM

Hehe i just made a cool little program with it, uploading soon so i can share it here =D
Check it
Link

-Ussyless

Edited by Ussyless, 08 December 2006 - 02:41 AM.

  • 0

#20 pj357

pj357

    GMC Member

  • New Member
  • 80 posts

Posted 09 December 2006 - 06:42 PM

I just looked at the program, and I don't think it's fast enough to take a picture of the entire screen every 5 steps. :mellow:
  • 0

#21 tsg1zzn

tsg1zzn

    GMC Member

  • New Member
  • 1163 posts
  • Version:Unknown

Posted 12 December 2006 - 09:42 PM

The dll is fast enough, but the loop itself in GM is not.
  • 0

#22 lostdarkwolf

lostdarkwolf

    GMC Member

  • GMC Member
  • 413 posts
  • Version:GM8.1

Posted 02 December 2009 - 04:49 AM

NOOOOOOO!!!!!! THE LINK!!! ITS BROKEN!!!! Posted Image
  • 0

Colorado finally did it! they legalized the recreational!


#23 PlasticineGuy

PlasticineGuy

    GMC Member

  • New Member
  • 2384 posts

Posted 02 December 2009 - 05:20 AM

Maybe because it's been three years.
  • 0

#24 Revel

Revel

    ɹǝqɯǝɯ ɔɯƃ

  • GMC Member
  • 4935 posts
  • Version:GM8

Posted 03 December 2009 - 03:57 AM

I made a DLL identical to this once...

If you need it you can PM me and I can supply mine for you. (at least until he updates the link)

Edited by Revel, 03 December 2009 - 03:58 AM.

  • 1