close
Blogtrottr
Yahoo!奇摩知識+ - 分類問答 - 電腦網路 - 發問中
Yahoo!奇摩知識+ - 分類問答 - 電腦網路 - 發問中 
按鍵精靈判斷+循環
Feb 19th 2015, 02:49

小弟是按鍵新手 在參考官網的教學之後 嘗試寫一個抓字的腳本
但是判斷和循環 實在搞不懂... 請高手指教

例如以下
rem start
FindPic 0,0,1024,768,"Attachment:\1.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
MoveTo intX+20, intY+5
Delay 1000
LeftClick 1
End If
Delay 1000
FindPic 0,0,1024,768,"Attachment:\2.bmp",1,intX,intY
If intX > 0 And intY > 0 Then
MoveTo intX+10, intY+5
Delay 1000
LeftClick 1
End If

Delay 1000
Rem A
FindPic 0,0,1024,768,"Attachment:\3.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
MoveTo intX+20, intY+10
Delay 1000
LeftClick 1
End If

Delay 1000
Rem B
FindPic 0,0,1024,768,"Attachment:\4.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
MoveTo intX+30, intY
Delay 1000
LeftClick 1
End If

Delay 1000
Rem C
FindPic 0,0,1024,768,"Attachment:\5.bmp",1,intX,intY
If intX > 0 And intY > 0 Then
MoveTo intX+20, intY
Delay 1000
LeftClick 1
End If

Delay 1000
Rem D
FindPic 0,0,1024,768,"Attachment:\6.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
MoveTo intX+10, intY+5
Delay 2000
LeftClick 1
End If
i=i+1
while i>30
goto start

請問
標記D的數字可能會連續出現5次
所以如何判斷畫面上數字出現就點擊一次
標記D如果成立就跳出循環
標記D如果不成立就重新依序檢查 標記A.B.C.D

Recommended article: Chomsky: We Are All – Fill in the Blank.
This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers.

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions
arrow
arrow
    全站熱搜
    創作者介紹
    創作者 kkosk8eq8o7k4 的頭像
    kkosk8eq8o7k4

    線上遊戲排行榜2013/2014,進擊的巨人線上看,candy crush saga外掛,正妹寫真三圍

    kkosk8eq8o7k4 發表在 痞客邦 留言(0) 人氣()