有什么办法让 mac 保留“镜像或拓展至 iPad ”吗

172 天前
 q534
镜像或拓展至 ipad 属于把 ipad 当第二个屏幕,区别于使用鼠标控制 ipad , 后者可以自动重连。
我使用的 镜像或拓展至 ipad 每次睡眠、锁屏重新使用时,都需要 设置-->显示器-->加号-->选择 ipad ,四次操作,特别繁琐
1734 次点击
所在节点    Apple
7 条回复
iTea
172 天前
ipad 商店有一个“护航”可以看看。
vfff
172 天前
@iTea 的确,挺方便的
1101x1
172 天前
applescript
q534
171 天前
@1101x1 请赐教?有写好的嘛,
IgniteWhite
171 天前
1101x1
170 天前
on findLastTargetIndex(targetItem, itemList)
set lastIndex to 0
repeat with i from (count of itemList) to 1 by -1
if item i of itemList is targetItem then
set lastIndex to i
exit repeat
end if
end repeat
return lastIndex
end findLastTargetIndex
beep 1
beep 1
tell application "System Settings"
activate
delay 1
tell application "System Events"
tell process "System Settings"
click menu item "显示器" of menu "显示" of menu bar item "显示" of menu bar 1
delay 0.3
tell group 1 of group 2 of splitter group 1 of group 1 of window "显示器"
try
delay 1
-- 这里需要延迟,因为系统设置冷启动后不能立刻加载出右侧的界面
click pop up button "添加"
-- 获取所有菜单项的名称
set menuItems to name of menu items of menu "添加" of pop up button "添加"
-- 通过名字查找要准确一些,这里去找最后一个名字的索引,因为如果符合通用控制的调节,就会出现两个名字,一个是通用控制,一个是随航
set targetIndex to (my findLastTargetIndex("XXXXXXXX 的 iPad", menuItems))
-- 点击目标菜单项
delay 0.3
click menu item targetIndex of menu "添加" of pop up button "添加"
say "连接成功"
on error
delay 0.5
say "连接失败"
end try
end tell
end tell
end tell
end tell
delay 1
beep 1
--tell application "System Settings" to quit
我也网上找的 自动操作 然后用的鼠标手势 划一下就自动连接了 你自己找找看 或 trae 改改
Maipol
169 天前
mac 右上角控制中心不是有个“屏幕镜像”吗

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/1118577

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX