几种枚举窗口的方法(包括猥琐的你懂得)
来源:互联网 发布:有域名怎么免费建网站 编辑:程序博客网 时间:2024/05/17 09:06
老生常谈的枚举那些就 不说了
说一些 很少有人处理的
POINT pt;
GetCursorPos(&pt);
hd=WindowFromPhysicalPoint(pt);
if (hd!=NULL)
{
GetWindowTextA(hd, text, 260);
printf("text :%s \n",text);
Sleep(2000);
}
获取当前鼠标所在位置的窗口
随便写个demo 在vista以上就anti sod
GetCursorPos(&pt);
ScreenToClient(GetDesktopWindow(), &pt);
hd= ChildWindowFromPoint(GetDesktopWindow(), pt);
if (hd != NULL){
GetWindowTextA(hd, text, 260);
printf("text :%s \n", text);
Sleep(2000);
}*/
从某个坐标处开始枚举 实际上是 枚举的 hwd内的窗口 坐标要转换成 用户坐标
查色 比对的就不说了~
很多人爱用的
HWND hChild = ::GetWindow(ParentWnd, GW_CHILD);
for (;hChild != NULL; hChild = ::GetWindow(hChild, GW_HWNDNEXT))
{
}
HWND WINAPI RealChildWindowFromPoint(
_In_ HWND hwndParent,
_In_ POINT ptParentClientCoords
);
PhysicalToLogicalPoint
检测 隐藏窗口的话就有N+!种方法了 太多 不说了
以上 是 相对猥琐的东西了~~~
说一些 很少有人处理的
POINT pt;
GetCursorPos(&pt);
hd=WindowFromPhysicalPoint(pt);
if (hd!=NULL)
{
GetWindowTextA(hd, text, 260);
printf("text :%s \n",text);
Sleep(2000);
}
获取当前鼠标所在位置的窗口
随便写个demo 在vista以上就anti sod
GetCursorPos(&pt);
ScreenToClient(GetDesktopWindow(), &pt);
hd= ChildWindowFromPoint(GetDesktopWindow(), pt);
if (hd != NULL){
GetWindowTextA(hd, text, 260);
printf("text :%s \n", text);
Sleep(2000);
}*/
从某个坐标处开始枚举 实际上是 枚举的 hwd内的窗口 坐标要转换成 用户坐标
查色 比对的就不说了~
很多人爱用的
HWND hChild = ::GetWindow(ParentWnd, GW_CHILD);
for (;hChild != NULL; hChild = ::GetWindow(hChild, GW_HWNDNEXT))
{
}
HWND WINAPI RealChildWindowFromPoint(
_In_ HWND hwndParent,
_In_ POINT ptParentClientCoords
);
PhysicalToLogicalPoint
检测 隐藏窗口的话就有N+!种方法了 太多 不说了
以上 是 相对猥琐的东西了~~~
0 0
- 几种枚举窗口的方法(包括猥琐的你懂得)
- 枚举窗口的两种方法
- 枚举进程的几种方法
- java类型枚举的几种方法
- 枚举进程的几种方法
- 子集枚举的几种方法
- 枚举当前进程的几种方法(总结)
- 你的懂得的线程
- 三种方法打印 main函数的返回地址的值(old EIP)(用途,你懂得!)
- 弹出窗口的几种方法
- 新弹出窗口的几种方法
- 弹出窗口的几种方法
- 弹出窗口的几种方法
- 窗口置前的几种方法
- 窗口置前的几种方法
- js关闭窗口的几种方法
- C#隐藏窗口的几种方法
- 查找窗口的几种方法
- Visio画大括号、花括号
- 在iOS中有几种方法来解决多线程访问同一个内存地址的互斥同步问题
- ViewHolder的高级使用
- 13周练 D - Beautiful Paintings 【升数列】
- qt在Windows下生成包含动态库的动态库
- 几种枚举窗口的方法(包括猥琐的你懂得)
- objective-c - 基础篇 - 数据库网络 -- 使用NSURLSession进行POST请求的网络数据
- 【android】:android之创建多个活动
- Android Studio中安装OpenCV SDK
- sdk版本对应的android版本
- 比较字符串
- leetcode---Swap Nodes in Pairs
- ListView优化之一:重用convertView
- Firefox必备的24款web开发插件