Jump to content

Recommended Posts

Posted

im looking for the autoit source pixelsearch function in c++, im just looking for the fastest way to search through pixels as getpixel() and getdibits() are both too slow.

Posted

Just as a friendly note. You're not going to find anyone giving you C++ code from the AutoIt code base.

Enjoy,

Jarvis

AutoIt Links

File-String Hash Plugin Updated! 04-02-2008 Plugins have been discontinued. I just found out.

ComputerGetInfo UDF's Updated! 11-23-2006

External Links

Vortex Revolutions Engineer / Inventor (Web, Desktop, and Mobile Applications, Hardware Gizmos, Consulting, and more)

Posted (edited)

i thought it was released ?!

and i just couldnt find it. anyway since im not going to be able to get the source does anyone know of a faster way to grab pixels then the 2 methods i posted above?

Edited by rockets
Posted

rockets,

Back in the day AutoIt was completely open source, but due to several deciding factors it is no longer an open source project. There is a partial code release, but that's mostly only for you to be familiar with how the code is constructed so that if you have anything to add you can do so and show your worth to the current developers.

I'm sorry I don't know of any ways let alone the two you mentioned above for grabbing/finding pixels.

Thanks,

Jarvis

AutoIt Links

File-String Hash Plugin Updated! 04-02-2008 Plugins have been discontinued. I just found out.

ComputerGetInfo UDF's Updated! 11-23-2006

External Links

Vortex Revolutions Engineer / Inventor (Web, Desktop, and Mobile Applications, Hardware Gizmos, Consulting, and more)

Posted

well looking through the partial v3 release it seems that autoit just uses GetPixel() for searching pixels , so i guess that its other things in my program that are slowing everything down.

for( q=relrect.left; q<=relrect.right; q = q + nStep)   
{
        for( r=relrect.top; r<=relrect.bottom; r = r + nStep)
        { 
            col = GetPixel(hdc, q, r);
            red = GetRValue(col); 
            green   = GetGValue(col);   
                blue    = GetBValue(col); 

        }
Posted

Pixelsearch works pretty fast, but for large area's it's just allot of pixels, so keep the search area as small as possible and the step value as high as possible. I'm not sure how the variation parameter affects performance.

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...