可以用 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