Posted on 2006-05-20
Hello, I am doing the following:
Class = String(500, 0)
GetClassName Wnd, Class, 500
Once, then I have the following running numerous times:
Wnd = FindWindow(Class, vbNull)
DC = GetWindowDC(Wnd)
BitBlt Form1.hdc, 0, 0, 640, 140, DC, 0, 340, vbSrcCopy
ReleaseDC Wnd, DC
All variables are defined publicly
This code works, but as soon as I leave the window I am trying to capture, it starts capturing a new window.
I have also tried the same thing, first getting the window by point (windowfrompoint) and getting the dc and
If a window overlaps the window I am capturing, it grabs that window too. I want to capture ONLY a certain
section of a window which will NOT have focus and will be overlapped.