Capturing user events (button clicks etc) from another Windows application [closed]

别等时光非礼了梦想. 提交于 2019-11-29 12:27:44
silverspoon

If I understand your post correctly, you need something similar to Spy++ that can hook the Windows messages and tell you when that message gets fired.

Have a look at these links:

  1. Deliver The Power Of Spy++ To Windows Forms
  2. Spying Window Messages from the Inside
  3. How can I get functionality similar to Spy++ in my C# app?
Srinuvas
private void CaptureCameraCallback()

{

    using (CvCapture cap = CvCapture.FromCamera(CaptureDevice.Any, 1))

    {

        while (true)

        {

            Bitmap bm = BitmapConverter.ToBitmap(cap.QueryFrame());

            bm.SetResolution(pctCvWindow.Width, pctCvWindow.Height);

            pctCvWindow.Image = bm;

        }

    }

}
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!