能否捕捉到其它程序上的文本输入框(如TextBox)的句柄,并得到它的文本? 先用 Findwindow 找到符合条件的窗口,再用 FindwindowEx 根据找到类名找到文本框的句柄。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 用pgfan的方法获得句柄,然后用SendMessage(句柄,WM_GETTEXT,缓冲大小,缓冲区名称)就可以了 还可以用GetCursorPos()获得鼠标的坐标,然后用WindowFromPoint()获得此坐标下的文本框的句柄. Dim Pt As POINTAPI, mWnd As Long 'Get the current cursor position GetCursorPos Pt 'Get the window under the cursor mWnd = WindowFromPoint(Pt.X, Pt.Y) 关于vb生成word的问题,各位大侠帮帮忙 vb 取数据库表中的所有ID 做个小调查,看看大家VB做报表都用什么方法? 如何让文本框和标签一样具有AutoSize 使用DAO来编程,如何做事务的开始,提交和回滚?在线等待 关于VB和SQL的备分 AniPushButton(AniButton)控件 的问题 datagrid的问题? 我的键盘shift件坏了,找个键代替,如何编程? 在listbox里用不同颜色显示字体 vb下如何解决多用户操作数据库 如何在mouse拖动中显示矩形框?
'Get the current cursor position
GetCursorPos Pt
'Get the window under the cursor
mWnd = WindowFromPoint(Pt.X, Pt.Y)