0482名称未設定
2014/08/26(火) 22:20:52.64ID:b3q+zHHi0--やりたい操作「ページ進む」か「ページ戻る」を設定(OS10.6.8でのみ動作確認)
property iTextPageControl : "ページ進む"
--property iTextPageControl : "ページ戻る"
tell application "System Events"
if application process "iText Pro" exists then
tell process "iText Pro"
--アプリウインドウを最前面に出す
set frontmost to true
if window 1 exists then
--ウインドウズームサイズのポップアップボタンの位置を取得し、そこからx:75, y:5ずらした座標(=クリックしたい位置)を設定
set buttonPos to position of pop up button 1 of scroll area 1 of window 1
set xPos to (item 1 of buttonPos) + 75
set yPos to (item 2 of buttonPos) + 5
if iTextPageControl is "ページ進む" then
my left_click(xPos, yPos)
else if iTextPageControl is "ページ戻る" then
my right_click(xPos, yPos)
end if
end if
end tell
end if
end tell
--(まだ続きます)