Page 1 of 1

Image Recognition/Processing

PostPosted: Fri Feb 19, 2010 10:26 am
by boonos
It would be nice to create a bot based on what images are on screen. A script will compare if a similar image is present in the screen or not.
Very similar from Q-u-i-c-k-M-a-c-r-o.

Re: Image Recognition/Processing

PostPosted: Fri Feb 19, 2010 4:44 pm
by L. Spiro
Then you had better get started.
Real-time full-screen scanning is entirely possible with L. Spiro Script using a bi-dimensional Boyer-Moore surface scan.


L. Spiro

Re: Image Recognition/Processing

PostPosted: Sat Feb 20, 2010 1:19 pm
by boonos
ok.
Im stuck.
I think i need some tips.

1. How do i open image files? will i use FOpen?
2. How do i get the screen image?
will i use:
BOOL CaptureScreen(const LPRECT lprRegion, const _TCHAR * ptcFile)
but it might be slow.
i used:

HWND hwnd = FindWindow( "Minesweeper" );
if ( !hwnd ) { return; }
HDC something = GetWindowDC( hwnd );
...
colors = GetPixel( something, screenx, screeny);

but it only get a particular window, not the whole screen.

Thanks

Re: Image Recognition/Processing

PostPosted: Sat Aug 14, 2010 8:56 am
by L. Spiro
Pass NULL to GetWindowDC().


L. Spiro