@
Themyth 苹果的都可以自动化 applescript 了解一下
···
tell application "System Preferences"
activate
set the current pane to pane id "com.apple.preference.Displays"
get the name of every anchor of pane id "com.apple.preference.Displays"
delay 2
tell application "System Events"
click pop up button "Add Display" of window "Displays" of application process "System Preferences"
click menu item "wen 的 iPad" of menu "Add Display" of pop up button "Add Display" of window "Displays" of application process "System Preferences"
end tell
quit
end tell
···
这是 monterey 系统的脚本,如果开启了自动登录的话,把这个脚本弄成启动执行就行了