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

Post a reply


In an effort to prevent automatic submissions, we require that you complete the following challenge.
Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :| :mrgreen: :geek: :ugeek: :arrow: :angel: :clap: :crazy: :eh: :lolno: :problem: :shh: :shifty: :sick: :silent: :think: :thumbup: :thumbdown: :salute: :wave: :wtf: :yawn: :facepalm: :bravo: :dance: :beard: :morebeard: :xmas: :HeHe: :trollface: :cookie: :rainbow: :monkeysee: :monkeysay: :happybday: :headwall: :offtopic: :superhappy: :terms: :beer:
View more smilies

BBCode is ON
[img] is OFF
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: 使用 Acc 还是不能按路径获取 QQ 对话文本

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

Post by thomasmolover » 30 Dec 2017, 00:00

参考
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) 都不能取值

Top