This bugged me, so I downloaded acc.ahk from here (so we're sure we're talking about the same thing...):
https://github.com/Drugoy/Autohotkey-sc ... es/Acc.ahk
On a freshly started Win10 File Explorer instance (to make sure the window title is "File Explorer") this code:
Code: Select all
WinGet,hWnd,id, File Explorer
oAcc := Acc_Get("Object", "18.104.22.168.22.214.171.124.126.96.36.199.4.1", 0, "ahk_id " hWnd) ; selects the Search Quick Access edit field
MsgBox % Acc_Role(oAcc) "; " Acc_State(oAcc) ; should read "editable text; focusable" if the above went well
WinActivate, File Explorer
MsgBox, % oAcc.accValue(0) ; should read "New.mp3"
puts the focus in the Search Quick Access edit field, enters new text and displays the new value.
Have you confirmed the path to the control you want in AccViewer?