Code: Select all
script2.cpp
ResultType Line::PixelSearch(...
...
if (aIsPixelGetColor)
{...
}
else if (aIsPixelGetRegionValue)
{
long temp = 0
for (; i < screen_pixel_count; ++i)
temp = temp + screen_pixel[i]; //Need work here
TCHAR buf[32];
_stprintf(buf, _T("%u"), temp);
output_var_x->Assign(buf); // Caller has ensured that first output_var (x) won't be NULL in this mode.
found = true; // ErrorLevel will be set to 0 further below.
}