Hi again.
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
#SingleInstance force
#include Acc.ahk
WinGet,hWnd,id, File Explorer
oAcc := Acc_Get("Object", "4.5.4.1.4.9.4.1.4.1.4.1.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
oAcc.accSelect(0x1,0)
SendInput, New.mp3
Sleep, 100
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?