protected void GrabCursor(int x, int y, int w, int h) { var vs = FindVirtScreen(y); var pixels = Capture(vs, x, y - vs.TopLine, w, h); SetCursorFromBuffer(pixels, w, h); } }