Acc: selecting an object through "Value" not path

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
JustinNL
Posts: 28
Joined: 01 Sep 2020, 13:22

Acc: selecting an object through "Value" not path

Post by JustinNL » 10 Apr 2021, 16:07

Dear all,

I'm new in Acc to automate functions.
I've looked into the Acc tutorial and have the Accessible info Viewer and wanted to get started.

However, there is one thing that I run into: the Acc path of the object I'm trying to reach (or actually: click) differs depending on the view.
To explain further, I am trying to click an item in a menu box that you can scroll upward and downward. (just like the new windows 10 start menu)
Depending on the position of this box, the acc Path changes.

For instance, if it is the third visible option in the screen, the acc path is 1.11.1.1.1.1.2.1.1.3.1
And if it is the tenth visible option, it is 1.11.1.1.1.1.2.1.1.10.1

The Value of this item (as shown in the AccViewer) is always the same.
Is there a way to get the object of this button based on its Value, rather than the path?
Or maybe return the path by looping through the various Values available? (although this may slow down the script)

Thanks in advance!
Best,
Justin

Return to “Ask for Help (v1)”