2013-12-13 60 views
0

設置passCode爲「I'mTheBitCoinMinerr」 顯示對話框「要訪問以下頁面,您需要輸入密碼」默認答案「在此處輸入密碼」buttons {「Submit」 }默認按鈕1 集passInput到文本返回的結果 如果passInput是密碼然後 顯示對話框「訪問授予」按鈕{「繼續」}默認按鈕1 重複 顯示對話框「是否要取消或不呢?」按鈕{ 「取消」, 「繼續」} 顯示對話框 「這個網頁是我的網頁linkz的預期行結束等,但發現未知的令牌

Page navigation. 
Where do you want to go? 

Answers: 
Canvasrider 
Youtube 
Instagram" default answer "Enter a valid answer here" buttons {"OK"} default button 1 
    set pageNav to text returned of result 
    if pageNav is "Canvasrider" then 
     display dialog "Link to my Canvasrider profile: canvasrider.com/users/thestuntmaster125 

Page navigation. 
Where do you want to go? 

Answers: 
MinecraftForum 
Planetminecraft 
Back" default answer "Enter a valid answer here" buttons {"OK"} default button 1 
    else if pageNav is "Youtube" then 
     display dialog "Link to my YouTube profile: http://www.youtube.com/channel/UCUPOC8-sCiqIMtrA5Yw4fMA 

Page navigation. 
Where do you want to go? 

Answers: 
MinecraftForum 
Planetminecraft 
Back" default answer "Enter a valid answer here" buttons {"OK"} default button 1 
    else 
     display dialog "Link to my Instagram profile: Instagram.com/mcaddict125 

    Page navigation. 
    Where do you want to go? 

    Answer: 
    MinecraftForum 
    Planetminecraft 
    Back Enter a valid answer here" buttons {"OK"} default button 1 
    end if 

末重複

其他 顯示對話框中的 」拒絕訪問「 按鈕{」 OK「}

結束時,如果

^^^從頂部到底部「結束時,如果」是我鏈接到我的其他網站上的個人資料密碼鎖定鏈接頁未完成的代碼。但每當我嘗試編譯/運行, 它的ays「預計結束行等,但發現未知的令牌」,我的代碼看起來有效!我是Applescript的新手,所以如果答案很簡單,我不會感到驚訝。謝謝你的時間!

回答

0

嘗試:

set passCode to "I'mTheBitCoinMinerr" 
display dialog "To access the following page, you need to enter your password" default answer "Enter password here" buttons {"Submit"} default button 1 
set passInput to text returned of result 

if passInput is passCode then 
    display dialog "Access granted" buttons {"Continue"} default button 1 

    repeat 
     display dialog "Do you wish to cancel or not?" buttons {"Cancel", "Continue"} 
     pageNav to text returned of (display dialog "This page is my page of linkz 

      Page navigation. 
      Where do you want to go? 

      Answers: 
      Canvasrider 
      Youtube 
      Instagram" default answer "Enter a valid answer here" buttons {"OK"} default button 1) 

     if pageNav is "Canvasrider" then 
      display dialog "Link to my Canvasrider profile: canvasrider.com/users/thestuntmaster125 

       Page navigation. 
       Where do you want to go? 

       Answers: 
       MinecraftForum 
       Planetminecraft 
       Back" default answer "Enter a valid answer here" buttons {"OK"} default button 1 
     else if pageNav is "Youtube" then 
      display dialog "Link to my YouTube profile: http://www.youtube.com/channel/UCUPOC8-sCiqIMtrA5Yw4fMA 

        Page navigation. 
        Where do you want to go? 

        Answers: 
        MinecraftForum 
        Planetminecraft 
        Back" default answer "Enter a valid answer here" buttons {"OK"} default button 1 
     else 
      display dialog "Link to my Instagram profile: Instagram.com/mcaddict125 

          Page navigation. 
          Where do you want to go? 

          Answer: 
          MinecraftForum 
          Planetminecraft 
          Back Enter a valid answer here" buttons {"OK"} default button 1 
     end if 
    end repeat 
else 
    display dialog "Access denied" buttons {"OK"} 
end if 
+0

謝謝!它幫助了很多! = d – MPGHacker