2016-12-03 18 views
2
tell application "Google Chrome" to activate 
delay 0.5 
tell application "System Events" 
    tell process "Google Chrome" 
     click at {1067, 79} 
     click at {1026, 220} 
    end tell 
end tell 

ここで私のAppleScriptは、最初にクロムでクリックして拡張を試みた後、拡張子の内部でビデオをダウンロードするために2回クリックしてみましたが、最初のコマンドだけが実行され、 "欠損値"を返します。どうしてか分かりません。私はまた、2つのコマンドの間に遅延を追加しようとしましたが、それはまだ動作しません。誰でも助けることができますか?これはあなたが何を意味するかである場合applescriptクリック欠損値

答えて

0
tell application "Google Chrome" to activate 
delay 0.5 
tell application "System Events" 
    tell process "Google Chrome" 
     click at {1067, 79} 
delay 1 
     click at {1026, 220} 
    end tell 
end tell 

^は、この方法を試してください。

tell application "Google Chrome" to activate 
delay 0.5 
tell application "System Events" 
    tell process "Google Chrome" 
     click at {1067, 79} 
    end tell 
end tell 
delay 0.5 
tell application "Google Chrome" to activate 
tell application "System Events" 
    tell process "Google Chrome" 
     click at {1026, 220} 
    end tell 
end tell