Re: [按精]某一定点持续某种颜色超过五分钟时执行

楼主: frank38 (:~)   2013-02-24 01:12:43
可以用 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

Links booklink

Contact Us: admin [ a t ] ucptt.com