Jump to content
Sign in to follow this  
Kukudum

Pixel checking the weird way (need help)

Recommended Posts

Kukudum

Hi all !

I am trying to check for speceific pixels drawn in a program . However this program does not support the standart windows api which makes all pixels return black .

I can do screenshot but i cannot check pixels . So i used the captdll project to make screenshots of the area i would like to check with height and width 1 pixel .

Now what i want to do is compare that file (generated file) to another (the original color i am searching for) and if they match left click the mouse . This has turned

out to be quite a problem as the file size,height,width is exactly the same for both files and Readfile only reads the first 3 or 4 lines which are exactly the same for both

files example :

File 1 :

BMv      6   (   
   
         @                  X"Z"[#[#X"V!S PML  X"[#[#[#[#W!V!S PO  X"[#[#Z"[#Y#V!S PP  V!Y#[#[#[#[#X"V!S Q   T!W![#_%b&` &[#W!S S   S Y#c 'h$+i%,h$+` &X"U S   T!`"(j&-n(/p)3n'1b"(X"T!Q   U"c%+m'.p'/q(2p'1c#)X"S Q   LV#_#)f%.j'0k&0g$+Z$RM  GKQ Y$a#)f&,d$*Y$PM 
oÝ÷ ØX¥{f®¶­s`¤$×`b¢¢b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3s²b3C²b3C²b3C²b3C²b3C²b3C²b3C²b3C²b3C²b3C²b3C²b3C²b3C²b3C²b3C²b3C²b3C²b3C²b3C²b3C²b3C²b3C²b3C²b3C²b3C²b3C²b3C²b3C²b3C²b3C²b3c²b3c²b3c²b3c²b3c²b3c²b3c²b3c²b3c²b3c²b3c²b3c²b3c²b3c²b3c²b3c²b3c²b3c²b3c²b3c²b3c²b3c²b3c²b3c²b3c²b3c²b3c²b3c²b3c²b3c² oÝ÷ Ø­¢+h¦jv zËh­æjëh×6
BMv      6   (   
   
         @

from both files (they are bmp files) . So the function always returns true (files always match although they are different) .

I also tried crc32 but as it only reads the first 3 lines the crc32 is the same ...

If anybody could tell me a different way to compare two bmp files with the same size and parameters i would be very grateful .

Share this post


Link to post
Share on other sites
Davo

I would love to help but the code is in jibberish

Dave


---------------------------------------------------------------------------------------------------------------------------------------------------------------------------"I don't need to know everything, I just need to know where to find it when I need it"....EinsteinAnd in our case... That's the AutoIT helpfile ;) Please read before posting!!!

Share this post


Link to post
Share on other sites
Kukudum

Um ... I don't think you realy understood me . I asked if there was a way to compare 2 bmp files without usind ReadFile . Or maybe search for a pixel

in the bmp file without me having to open i manually .

An example of what I'm trying to do is :

Capture screenshot of just 1 pixel on screen (already did that) . See if the pixel in the screenshot is green or not .

If anyone can come up with a better way please tell me (ReadPixel doesn't work on the program I'm trying -- returns black pixels) however i can do screenshots

Thanks in advance

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×