Quantcast
Channel: AutoHotkey Community
Viewing all articles
Browse latest Browse all 579

请求帮助 • Re: 如何通过文件名选中相应的文件,比如windows的direcUIHWND中的某一个item

$
0
0
我曾经询问过,可能需要库才能做到,我看到Acc库有Select()但不知道怎么使用,下面是悬停高亮和获取文本演示

CODE:

#Include <Acc>

f3::
{
MouseGetPos(, , &hWnd)
oAcc := Acc.ObjectFromPoint(hwnd)
oAcc.Highlight()
oAcc := ""
return
}

f6::
{
MouseGetPos(, , &hWnd)
oAcc := Acc.ObjectFromPoint(hwnd)
vWinClass := WinGetClass("ahk_id " hWnd)
vText := ""
if (vWinClass = "CabinetWClass" || vWinClass = "ExploreWClass" || vWinClass = "#32770") {
try vText := oAcc.accValue(hWnd)
} else if (vWinClass = "Progman" || vWinClass = "WorkerW" || vWinClass = "#32770")
try vText := oAcc.accName(hWnd)
MsgBox(vText)
oAcc := ""
return
}

viewtopic.php?f=83&t=107857&hilit=ACC+lib

Statistics: Posted by WKen — Today, 14:16



Viewing all articles
Browse latest Browse all 579

Trending Articles