可以用 SetTimer
http://www.autohotkey.com/docs/commands/SetTimer.htm
===Example===
checkCount := 0
SetTimer, CheckColor, 1000 ; 1000 millisecond = 1 second
CheckColor:
If(checkCount >= 300) ; run 300 times.
{
SetTimer, CheckColor, Off
}
PixelSearch, Px, Py, 200, 200, 300, 300, 0x9D6346, 3, Fast
If Not ErrorLevel
checkCount := checkCount+1
Else
SetTimer, CheckColor, Off ;stop timer
Return
※ 引述《ff760725 (☑矮☑肥☑醜☑窮☑宅)》之銘言:
: 請問要怎麼寫?
: 我只能用if的定點顏色判斷+delay 1000包裝個3百次 OTZ