It is expected to get the file name under mouse.
But the output is not always right, as you can see below.
Thanks for any help on fixing this problem.
Code: Select all
#Include .\Lib\UIA.ahk
F1::
{
CoordMode "Mouse", "Screen"
MouseGetPos(&mx,&my,&mwId)
try
CapElement:=UIA.SmallestElementFromPoint(mx,my)
if !IsSet(CapElement)
return
ItemName:=CapElement.GetCurrentPropertyValue(30005)
MsgBox ItemName
}
[Mod edit: Corrected attachments so each appears only once.]