what's the correct way of using AccViewer? Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
joshatt
Posts: 151
Joined: 07 Dec 2014, 08:41

what's the correct way of using AccViewer?

20 Jan 2019, 00:37

Hi,

I've been wondering this for a long time.
To clear my head, just now I did some test, proved my way of using accviewer is wrong.

What I did to find path of a control:
Drag accviewer's "+" tool to the target window, so that there's a red rectangle surrounding the whole window;
Use "show acc structure" to find that control's path, with help of red rectangle indication of each step.
For example, the path is 4,3,4,4,4,3,4,2,
I use the following code to debug:

wt:="somewintitle"
WinActivate,%wt%
WinWaitActive,%wt%
msgbox % Acc_Get("Name", "4",0,%wt%)

The above turns out correct.

But if I use msgbox % Acc_Get("Name", "4,3",0,%wt%)

The message box will be empty.
And so on....

If, from the beginning, I drag accviewer's "+" tool to the next subframe to the whole window, then find the control's path....This method is also wrong, because IN SOME CASES the target control's "Accessible Info - Name" will be empty, while in other ways (start from whole window or directly pinpoint the target control) Name is good .

So, what's the correct way of doing it?

Appreciate any response.
safetycar
Posts: 435
Joined: 12 Aug 2017, 04:27

Re: what's the correct way of using AccViewer?  Topic is solved

20 Jan 2019, 14:51

I haven't used Acc_Get much but on the library I have I see that the path delimiter is "."(Dot) instead of ","(Comma) .
joshatt
Posts: 151
Joined: 07 Dec 2014, 08:41

Re: what's the correct way of using AccViewer?

20 Jan 2019, 20:27

safetycar wrote:
20 Jan 2019, 14:51
I haven't used Acc_Get much but on the library I have I see that the path delimiter is "."(Dot) instead of ","(Comma) .
My bad, "." works.

And you brought me luck, suddenly several Acc codes from this forum begin to work for me, without error any more.

Thanks so much!

Have a good day.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Google [Bot], Lamron750, septrinus and 222 guests