如何取得鼠标位置的文字

unx unx 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
比如鼠标在记事本窗口上,并且在WORD的位置,我怎么得到"word"
我知道可以得到NOTEPAD窗口的文字,但是如果打开的是10M的文件,难道
我还要先复制到内存然后来找?
即使我知道了哪个缓冲区,又怎么知道鼠标指的是哪个字呢
DOS到好办,WINDOWS下突然不知道咋办了
________________________________
|无标题-1 |
--------------------------------
| how to get the word ... |
| $ |
| |
|______________________________|
...全文

相关推荐

网站底部位置添加图片,鼠标放在图片上显示文字

该代码可以实现网站的底部栏位置显示图片,鼠标悬停图片还可显示文字,很简单的代码 无法保证所有类型的网站添加代码都能适用

星之境

纯CSS3实现的3D文字效果会随着鼠标的位置变换3D阴影.zip

纯CSS3实现的3D文字效果会随着鼠标的位置变换3D阴影.zip

易小侠

【VS2010 C# 代码】获取鼠标所在位置的窗口句柄名称和文字及位置

Microsoft Visual Studio 2010做的C#获取鼠标所在位置的窗口句柄名称和文字及位置实例,主要代码: [StructLayout(LayoutKind.Sequential)]//定义与API相兼容结构体,实际上是一种内存转换 public struct POINTAPI { public int X; public int Y; } [DllImport("user32.dll", EntryPoint = "GetCursorPos")]//获取鼠标坐标 public static extern int GetCursorPos( ref POINTAPI lpPoint ); [DllImport("user32.dll", EntryPoint = "WindowFromPoint")]//指定坐标处窗体句柄 public static extern int WindowFromPoint( int xPoint, int yPoint ); [DllImport("user32.dll", EntryPoint = "GetWindowText")] public static extern int GetWindowText( int hWnd, StringBuilder lpString, int nMaxCount ); [DllImport("user32.dll", EntryPoint = "GetClassName")] public static extern int GetClassName( int hWnd, StringBuilder lpString, int nMaxCont ); [DllImport("user32.dll")] [return: MarshalAs(UnmanagedType.Bool)] public static extern bool GetWindowRect(IntPtr hWnd, ref RECT lpRect); [StructLayout(LayoutKind.Sequential)] public struct RECT { public int Left; //最左坐标 public int Top; //最上坐标 public int Right; //最右坐标 public int Bottom;//最下坐标 }

r00_a2lBUR

jquery鼠标悬停提示框随屏幕分辨率提示图片文字内容位置

jquery鼠标悬停提示框随屏幕分辨率提示图片文字内容位置

Ai部落_智能工具大全

【VS2010 C# 代码】获取鼠标点取窗口的位置、句柄、窗口名、窗口标题栏文字

Microsoft Visual Studio 2010做的C#获取鼠标点取窗口的位置、句柄、窗口名、窗口标题栏文字实例,主要代码: string sShow = "请点击确定后,点击窗口的标题栏。"; MessageBox.Show(sShow); mh = new MouseHook(); mh.SetHook(); mh.MouseMoveEvent += mh_MouseMoveEvent; mh.MouseClickEvent += mh_MouseClickEvent;

r00_a2lBUR
评论 4
收藏 已收藏
分享
返回顶部
unx
进程/线程/DLL 15,466 成员 49,169 内容