0
내가 다른 라디오 버튼을 선택하면 시스템 환경 설정의 라디오 버튼을 클릭합니다
tell application "System Preferences"
activate
end tell
tell application "System Events"
tell process "System Preferences"
click menu item "Mouse" of menu "View" of menu bar 1
if radio button "Right" is selected <-- pseudo-code
tell window "Mouse"
tell radio group 1
click radio button "Left"
end tell
end tell
end if
if radio button "Left" is selected <-- pseudo-code
tell window "Mouse"
tell radio group 1
click radio button "Right"
end tell
end tell
end if
end tell
end tell
사람이 작업을 수행하는 방법을 알아?
도움 주셔서 감사합니다. 작동 시키려면 else 문을 연결하기 만하면됩니다. 대부분의 사용자가 기본 버튼을 "오른쪽"으로 설정하면 걱정할 것입니다. 어깨 부상으로 인해 트랙볼을 사용할 때마다 손이 끊임없이 바뀝니다. – timkl