Jump to content


Photo

Colorscan


  • Please log in to reply
36 replies to this topic

#1 h0bbel

h0bbel

    GMC Member

  • New Member
  • 252 posts

Posted 01 May 2007 - 10:47 AM

This DLL scans on the screen for a certain color between a certain area.

It gets the number of found pixels and the coordinates of each.

(link removed)

Edited by h0bbel, 19 September 2013 - 06:54 PM.

  • 0
The empty archive bug should be fixed on my site.
Please use the "report bug" button on my site to report bugs, makes things clearer.

#2 coolsmile

coolsmile

    Programmer

  • New Member
  • 1346 posts

Posted 01 May 2007 - 11:15 PM

This will be useful for a lot of reasons, very nice job :)
  • 0

#3 Surrendered Games

Surrendered Games

    GMC Member

  • New Member
  • 69 posts

Posted 01 May 2007 - 11:30 PM

Good work :)
  • 0

#4 Ansgar

Ansgar

    OM Studios

  • New Member
  • 333 posts

Posted 03 May 2007 - 12:28 PM

Very nice, you're definitely one of my favourite DLL makers. :mellow:
However, I feel some of the functions have inaccurate names and also the example is very confusing. The functions I'm talking about are CS_GetColors, CS_GetColorX and CS_GetColorY. I would rename them to CS_GetPixels, CS_GetX and CS_GetY.
Also the example says "Found colors:", when it should actually say something like "Found black pixels:", and the pixel coordinates are listed like Color 1, Color 2, Color 3... and so on, which should be Pixel 1, 2, 3 and so on.
  • 0

#5 HaRRiKiRi

HaRRiKiRi

    GMC Member

  • GMC Member
  • 1364 posts

Posted 03 May 2007 - 01:37 PM

Pixel is in a certain color, thus he can call it "color" if he wants. He actually can call them anyway he likes, as he made this dll.

My question is, how fast is this?? If its fast then this could be very usefull.
  • 0

#6 Newly Discovered

Newly Discovered

    Harmonious Genius

  • GMC Member
  • 2475 posts
  • Version:GM8

Posted 03 May 2007 - 01:44 PM

why am I getting an error?
Error defining an external function.
yes, I extracted the files...
  • 0

poof_sig.png


#7 Ansgar

Ansgar

    OM Studios

  • New Member
  • 333 posts

Posted 03 May 2007 - 03:48 PM

Pixel is in a certain color, thus he can call it "color" if he wants. He actually can call them anyway he likes, as he made this dll.

<{POST_SNAPBACK}>

Oh really, he can? *an extremely surprised facial expression*
Sure, he could have called it The Ultimate Pumpkin-Powered Vacuum Cleaner, but that's not the point, is it? I just made a suggestion how he could make the function names and the example more clear in my opinion, and there's no need for you to "defend" him and his intellectual property.

Blah blah blah...

why am I getting an error?
Error defining an external function.
yes, I extracted the files...

Are the dll and the gmd/gm6/gmk file in the same directory?

Edited by Ansgar, 14 May 2007 - 10:10 AM.

  • 0

#8 Newly Discovered

Newly Discovered

    Harmonious Genius

  • GMC Member
  • 2475 posts
  • Version:GM8

Posted 03 May 2007 - 04:18 PM

yes ...
  • 0

poof_sig.png


#9 h0bbel

h0bbel

    GMC Member

  • New Member
  • 252 posts

Posted 03 May 2007 - 04:52 PM

Pixel is in a certain color, thus he can call it "color" if he wants. He actually can call them anyway he likes, as he made this dll.

My question is, how fast is this?? If its fast then this could be very usefull.

<{POST_SNAPBACK}>


It's not quite fast for large screen areas currently.
i'm thinking of a method which loads the whole area into the DLL's buffer in one API call, instead of the current method which calls an API function for every pixel.
  • 0
The empty archive bug should be fixed on my site.
Please use the "report bug" button on my site to report bugs, makes things clearer.

#10 Knightmare

Knightmare

    OMGLOLWTFZORZ!1!1!!11

  • New Member
  • 867 posts
  • Version:Unknown

Posted 03 May 2007 - 08:08 PM

This will be useful for making a bot. Thanks. :mellow:
  • 0


#11 t6q4

t6q4

    GMC Member

  • New Member
  • 104 posts

Posted 05 May 2007 - 08:46 PM

Great DLL, but great screen-probe too! This could be used in a cheat program so you *should* limit it to not go anywhere outside the room. Havent tried it outside, tho!
  • 0

#12 a2h

a2h

    GMC Member

  • New Member
  • 382 posts

Posted 06 May 2007 - 01:23 AM

I just hope Runescape autoers made with Game Maker won't be popping up anytime soon... *shudders*
  • 0

ion.developments does not exist, ignore my user title

#13 acevampire

acevampire

    GMC Member

  • New Member
  • 1367 posts

Posted 06 May 2007 - 06:07 PM

this seems very cool but I am getting an error as well :P
  • 0

#14 CHFD_113

CHFD_113

    GMC Member

  • GMC Member
  • 187 posts
  • Version:Unknown

Posted 11 May 2007 - 09:01 PM

Same with me,
I'm getting the: Error Defining External Function error.

Windows XP SP2 Home
Yes It's extracted in the same folder.

Thanks!
  • 0

#15 h0bbel

h0bbel

    GMC Member

  • New Member
  • 252 posts

Posted 12 May 2007 - 11:13 AM

Same with me,
I'm getting the: Error Defining External Function error.

Windows XP SP2 Home
Yes It's extracted in the same folder.

Thanks!

<{POST_SNAPBACK}>


Game Maker version ?
  • 0
The empty archive bug should be fixed on my site.
Please use the "report bug" button on my site to report bugs, makes things clearer.

#16 CHFD_113

CHFD_113

    GMC Member

  • GMC Member
  • 187 posts
  • Version:Unknown

Posted 12 May 2007 - 06:29 PM

Good old 6.1 is the version I am using...
I havnt updated yet because I recieved my key as a gift from a friend, but he moved, and I lost the key, I remember the name, but I dont know their credit card number to get the key again lol.

Yea, the only thing I can think of is that the DLL is corrupt maybe?
Like as in too little arguments, or honestly i just dont know...
  • 0

#17 OpticalLiam

OpticalLiam

    GMC Member

  • New Member
  • 782 posts

Posted 13 May 2007 - 06:23 PM

Pretty cool, but pretty slow.

I'd like to see more features, such as pixel skipping, search integrity, actual region searching (ie. from x,y to w,h and not 0,0 to w,h).

Cool though.
  • 0

#18 HaRRiKiRi

HaRRiKiRi

    GMC Member

  • GMC Member
  • 1364 posts

Posted 13 May 2007 - 09:46 PM

Oh really, he can? *an extremely surprised facial expression*
Sure, he could have called it The Ultimate Pumpkin-Powered Vacuum Cleaner, but that's not the point, is it? I just made a suggestion how he could make the function names and the example more clear in my opinion, and there's no need for you to "defend" him and his intellectual property.

I didn't defend him. I just sad why there is no need to rename the functions.

It's not quite fast for large screen areas currently.
i'm thinking of a method which loads the whole area into the DLL's buffer in one API call, instead of the current method which calls an API function for every pixel.

Hmm, to bad. When it becomes fast for large areas then it will be very useful. Especially for flood fill.
  • 0

#19 h0bbel

h0bbel

    GMC Member

  • New Member
  • 252 posts

Posted 14 May 2007 - 06:30 AM

Good old 6.1 is the version I am using...
I havnt updated yet because I recieved my key as a gift from a friend, but he moved, and I lost the key, I remember the name, but I dont know their credit card number to get the key again lol.

Yea, the only thing I can think of is that the DLL is corrupt maybe?
Like as in too little arguments, or honestly i just dont know...

<{POST_SNAPBACK}>


Ok, I don't understand why people always have errors which I don't have myself.
The methods I used are integrated in the windows GDI since windows 95.
I think Windows is not always as compatible as it should be.
My only suggestion for now is: try to change the calling method to dll_cdecl in the Init function.
  • 0
The empty archive bug should be fixed on my site.
Please use the "report bug" button on my site to report bugs, makes things clearer.

#20 h0bbel

h0bbel

    GMC Member

  • New Member
  • 252 posts

Posted 14 May 2007 - 06:47 AM

Oh really, he can? *an extremely surprised facial expression*
Sure, he could have called it The Ultimate Pumpkin-Powered Vacuum Cleaner, but that's not the point, is it? I just made a suggestion how he could make the function names and the example more clear in my opinion, and there's no need for you to "defend" him and his intellectual property.

I didn't defend him. I just sad why there is no need to rename the functions.

It's not quite fast for large screen areas currently.
i'm thinking of a method which loads the whole area into the DLL's buffer in one API call, instead of the current method which calls an API function for every pixel.

Hmm, to bad. When it becomes fast for large areas then it will be very useful. Especially for flood fill.

<{POST_SNAPBACK}>


I was thinking of a faster method, it is possible.
I could save the screen to a bitmap in the memory, and then scan the saved bitmap.
This would be way faster than calling a GDI function for every separate pixel.

Edited by h0bbel, 14 May 2007 - 06:50 AM.

  • 0
The empty archive bug should be fixed on my site.
Please use the "report bug" button on my site to report bugs, makes things clearer.

#21 CHFD_113

CHFD_113

    GMC Member

  • GMC Member
  • 187 posts
  • Version:Unknown

Posted 14 May 2007 - 08:15 PM

I tried iot, but it still doesnt work =/
Dang I really needed this for something =(

This is what the code looks like:
   global.external_cs_scan = external_define ('ColorScan.dll','hobbl_com_scan',dll_cdecl ,ty_real,5,ty_real,ty_real,ty_real,ty_real,ty_real);
    global.external_cs_getcolors = external_define ('ColorScan.dll','hobbl_com_getcolors',dll_cdecl,ty_real,0);
    global.external_cs_getcolorx = external_define ('ColorScan.dll','hobbl_com_getcolorx',dll_cdecl,ty_real,1,ty_real);
    global.external_cs_getcolory = external_define ('ColorScan.dll','hobbl_com_getcolory',dll_cdecl,ty_real,1,ty_real);

  • 0

#22 ydawg314

ydawg314

    GMC Member

  • New Member
  • 901 posts
  • Version:Unknown

Posted 06 August 2007 - 09:32 PM

I keep get the same message: Error defining an external function

Is there anyway around this?
  • 0
Check out my newest game Redesigned from scratch!
Posted Image
Download Mobile Suit Grunt Wars.zip W.I.P 7-26
TEST YOUR MECH PILOTING SKILLS!!!
Spoiler

#23 heathtech

heathtech

    GMC Member

  • New Member
  • 34 posts

Posted 08 August 2007 - 03:51 PM

It works on Vista for me, but it is horribly slow. I usually have to end the process if I scan a 16X16 pixel area because it takes well over 10 minutes.
  • 0

#24 daz

daz

    GMC Member

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

Posted 09 August 2007 - 06:08 PM

I tried iot, but it still doesnt work =/
Dang I really needed this for something =(

This is what the code looks like:

   global.external_cs_scan = external_define ('ColorScan.dll','hobbl_com_scan',dll_cdecl ,ty_real,5,ty_real,ty_real,ty_real,ty_real,ty_real);
    global.external_cs_getcolors = external_define ('ColorScan.dll','hobbl_com_getcolors',dll_cdecl,ty_real,0);
    global.external_cs_getcolorx = external_define ('ColorScan.dll','hobbl_com_getcolorx',dll_cdecl,ty_real,1,ty_real);
    global.external_cs_getcolory = external_define ('ColorScan.dll','hobbl_com_getcolory',dll_cdecl,ty_real,1,ty_real);

<{POST_SNAPBACK}>

In the example I have they're stdcalls not cdecls...Problem I have is that I'm not using this for gamemaker; so what's the exact punctuation er capitalization? :huh: of these functions? Thanks :lol:

Edited by daz, 09 August 2007 - 08:26 PM.

  • 0

#25 the_doominator

the_doominator

    Eight Star

  • New Member
  • 925 posts

Posted 09 August 2007 - 06:12 PM

Neat!
  • 0

#26 CheeseBall

CheeseBall

    GMC Member

  • New Member
  • 61 posts

Posted 10 August 2007 - 08:13 PM

null

Edited by CheeseBall, 22 March 2008 - 07:51 PM.

  • 0

#27 daz

daz

    GMC Member

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

Posted 11 August 2007 - 12:19 AM

Could be useful for an aimbot-type program. 7/10 ::lmao::

<{POST_SNAPBACK}>

heck no. This is quite a time consuming process and won't be fast enough for an aimbot..although I'm trying to make a macroing program in gm and this speed just doesn't cut it for what I'm doing either :GM7:
  • 0

#28 the_doominator

the_doominator

    Eight Star

  • New Member
  • 925 posts

Posted 11 August 2007 - 12:29 AM

It works extremely fast for me.... :)
  • 0

#29 daz

daz

    GMC Member

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

Posted 11 August 2007 - 12:38 AM

Are you scanning 5+ times in a row on nearly your whole screen? :)
  • 0

#30 the_doominator

the_doominator

    Eight Star

  • New Member
  • 925 posts

Posted 11 August 2007 - 12:42 AM

Are you scanning 5+ times in a row on nearly your whole screen? :)

<{POST_SNAPBACK}>

No, let me try that.

---EDIT---
Well, it took about 25 seconds to scan the entire screen 5 times.

Edited by the_doominator, 11 August 2007 - 12:44 AM.

  • 0

#31 daz

daz

    GMC Member

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

Posted 11 August 2007 - 12:54 AM

Yep I get about the same results and making a script that finds colors and acts on them but taking 25 seconds to do it on a time critical situation is not good. What I think would help a ton is making an extra function (in case some like the old one) that stops after finding the color for the first time. I know that would help some but it would still be quite slow I would think. And I haven't found any other color scanning dlls so...sux for me ;P
  • 0

#32 avanderveen

avanderveen

    GMC Member

  • New Member
  • 120 posts

Posted 19 August 2007 - 02:28 AM

Yeah, those of you thinking of using this for aim botting or macro-ing really should just use something else (if your that determined). If it takes a full 5 seconds to scan the screen once (I'm not sure what resolutions the two above posters had), then it's going to be difficult to keep up with games. Most games will be refreshing the screen 30 or more times per second, lol, far from once per 5 seconds.

It would be really cool if you could get it going faster, though h0bbel. People could use this for cool things like post-processing effects.

Edited by avanderveen, 19 August 2007 - 02:29 AM.

  • 0

#33 tdmgames

tdmgames

    GMC Member

  • New Member
  • 1641 posts

Posted 08 September 2007 - 10:21 AM

i been meaning to try out this for ages, just found it on GM Toolbox thought i would acctually try it...


hope i dont get errors like the rest :)


argh slow laptop....


Error defining an external function.


Extracted - Check
Same folder - Check
Annoyed - Check

I don't see it is doing this...

O well
TDM Games
  • 0
OH Balls!

Domain change: If any of my links do you not, please PM me and I will send you a working link :)

t3mp3st+Me+BMG = t3mp3st's edited avatar with changing colour effect.

#34 antome

antome

    GMC Member

  • New Member
  • 305 posts

Posted 12 October 2009 - 09:15 AM

I might, and probably will, use this in a semi-vectorization&interpolation system. Thanks!

edit: whoops. Amazing what happens when you forget to read dates. Sorry ^^

Edited by antome, 12 October 2009 - 09:19 AM.

  • 0

#35 lostdarkwolf

lostdarkwolf

    GMC Member

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

Posted 11 July 2010 - 01:10 AM

i know this topic is old but the download link doesn't work. can someone post a mirror??
  • 0

Colorado finally did it! they legalized the recreational!


#36 Recreate

Recreate

    Furry

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

Posted 11 July 2010 - 01:25 AM

Link seem to be working fine right now....
  • 0

If the post that you are reading was created prior to 2011. For the safety of the general public, It is not to be regarded under any circumstances.
Please don't ask me to join your group at anything.


#37 lostdarkwolf

lostdarkwolf

    GMC Member

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

Posted 11 July 2010 - 01:34 AM

http://allocated.nl/download/108194/
that is the file. it doesn't work.... :(
ive tried it in both firefox and IE.
IE downloads it, but as an empty file.

Edited by lostdarkwolf, 11 July 2010 - 01:37 AM.

  • 0

Colorado finally did it! they legalized the recreational!