0
때때로 이름이 바뀌는 버튼을 클릭해야합니다 : 예. ("xxxx 구입").이름의 일부분을 알고있는 버튼을 클릭하십시오.
첫 번째 부분 인 "Buy"는 고정되어 있고 두 번째 부분은 다릅니다.
이 코드를 작성했지만 예상대로 작동하지 않습니다. 도와주십시오.
tell application "System Events" to tell process "Aycc"
if button "Buy(.*)" of window 1 exists then
click button "Buy(.*)" of window 1
end if
end tell