Page 1 of 1

使用 Acc 还是不能按路径获取 QQ 对话文本

Posted: 30 Dec 2017, 00:00
by thomasmolover
参考
https://autohotkey.com/boards/viewtopic.php?f=6&t=40615
代码

可以正常获取鼠标下控件文本, 可是使用 acc_get 时候就不能按指定路径获取文本了

用 accviewer 获取的 qq 对话文本框 acc 路径为

3.2.1.1.2.1.2.1.2.1.4.1

使用
Acc:=Acc_Get("Object", "3.2.1.1.2.1.2.1.2.1.4.1", 0, "ahk_id " hWnd)

函数后, Acc.accName(0) Acc.accName(1) Acc.accValue(0) Acc.accValue(1) 都不能取值