gpt4 book ai didi

user-interface - 按值从 scrollarea 中选择行 - applescript ui,lync 自动化

转载 作者:行者123 更新时间:2023-12-04 06:38:39 24 4
gpt4 key购买 nike

我正在尝试使用 applescript ui 编程自动化基于 osx 的 Microsoft lync。到目前为止,我还不知道如何根据值选择 lync 联系人列表中的项目。 UI 检查器显示此层次结构:

AXApplication-AXWindow:AXStandradWindow-AXScrollarea-AXOutline-AXRow:AXOutlineRow-AXStaticText

AXValue:“音频测试服务 - Verfügbar - nur Voicemail”

我试过这个:

告诉进程“Microsoft Lync”选择 - ????

收到一个想法会很棒......!

最佳答案

tell application "System Preferences"
reveal anchor "output" of pane id "com.apple.preference.sound"
end tell
tell application "System Events" to tell process "System Preferences"
tell table 1 of scroll area 1 of tab group 1 of window 1
select (row 1 where value of text field 1 is "Internal Speakers")
end tell
--tell table 1 of scroll area 1 of tab group 1 of window 1
--if selected of row 1 then
--set selected of row 2 to true
--else
--set selected of row 1 to true
--end if
end tell

查找 UI 元素:

tell application "System Events" to tell process "System Preferences"
class of UI elements of window 1
--class of UI elements of group 1 of window 1 -- etc
end tell

关于user-interface - 按值从 scrollarea 中选择行 - applescript ui,lync 自动化,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17856074/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com