我想引用這兩個按鈕,但我不確定如何引用它們來點擊它們。你如何在JavaScript中引用這個html對象? applescript
,我發現這樣的說法:
做的JavaScript document.forms[0]['btnI'].click()
前面文檔中
,並想改變它引用此:
<li id="app_114228431971868" class="114228431971868">
<div>
<img class="gameimg" src="http://photos-g.ak.fbcdn.net/photos-ak-snc1/v27562/200/114228431971868/app_1_114228431971868_5955.gif" width="75" height="75">
</div>
<p>Knights of the Crystals</p>
</li>
然後我想添加第二個命令,按下這個按鈕:
<div id="get-button"></div>
然後第三個提到ENCE這個按鈕:
<img width="125" height="50" alt="Ready!" src="http://gffstatic.oneringgame.com/images/btn-ready.png" id="ggg-readybut" style="display: inline; ">
我覺得你把id其中的BTNI是在JavaScript,但我不確定什麼爲線的其他部分做的。
這是什麼都使用AppleScript做? – 2011-03-12 17:10:55
看起來他正在通過Applescript注入Javascript。 – Clark 2011-03-12 23:37:37
我想用這個裏面的蘋果腳本 – user654936 2011-03-14 16:59:23