随笔分类 -  windows

摘要:WindowFromPoint是一个计算机函数,功能是获得包含指定点的窗口的句柄,函数原型是HWND WindowFromPoint。 函数功能 该函数获得包含指定点的窗口的句柄。 函数原型 HWND WindowFromPoint(POINT Point); 参数 Point:指定一个被检测的点的 阅读全文
posted @ 2022-06-11 16:58 leehsiang 阅读(707) 评论(0) 推荐(0)
摘要:mouse_event mouse_event是一个计算机函数,功能是综合鼠标移动和按钮点击。如果鼠标被移动,用设置MOUSEEVENTF_MOVE来表明,dX和dy保留移动的信息。给出的信息是绝对或相对整数值。 VOID mouse_event( DWORD dwFlags, // motion 阅读全文
posted @ 2022-06-11 16:54 leehsiang 阅读(734) 评论(0) 推荐(0)
摘要:抓取当前屏幕函数 void Screen() { //创建画板 HDC hScreen = CreateDC("DISPLAY", NULL, NULL, NULL); HDC hCompDC = CreateCompatibleDC(hScreen); //取屏幕宽度和高度 int nWidth 阅读全文
posted @ 2022-06-11 16:34 leehsiang 阅读(438) 评论(0) 推荐(1)