ProHandle:=WindowFromPoint(CP);//根据坐标点取得控件Handle
if ProHandle<>0 then
BEGIN
SendMessage(ProHandle,WM_GETTEXT,255,LPARAM(GetTextPchar));
end;
Result:=GetTextPchar;
注:第三方软件中此Edit控件为灰色(估计enable为false)
...全文
864打赏收藏
用vm_gettext取不到第三方软件的文本值
ProHandle:=WindowFromPoint(CP);//根据坐标点取得控件Handle if ProHandle0 then BEGIN SendMessage(ProHandle,WM_GETTEXT,255,LPARAM(GetTextPchar)); end; Result:=GetTextPchar; 注:第三方软件中此Edit控件为灰色(估计enable为false)