告诉你:IfColor 535,530,"#E71008",1 Then
上面的1,是不等于的意思,0是等于
(颜色不等于就执行以下,else否则执行.....)
IfColor 535,530,"#E71008",1 Then
KeyPress "1", 1
KeyPress "2", 1
KeyPress "1", 1
KeyPress "2", 1
KeyPress "1", 1
KeyPress "2", 1
KeyPress "1", 1
KeyPress "2", 1
Else
End If
你的代码没多大问题。如果你用抓抓,抓的色对了,就行了。
希望解决你的问题
这个按键的不清楚,就会tc简单开发的。中文看着舒服。
我像写脚本都是想通的吧。。tc的是这样写的,,
整型 坐标点颜色
坐标点颜色=图像.坐标点取色(10,100)
如果(坐标点颜色!=#E71008)
键盘.按键(48,1)
键盘.按键(49,1)
键盘.按键(50,1)
如果结束
IfColor 535,530,"E71008",1
KeyPress "1", 1
KeyPress "2", 1
KeyPress "1", 1
KeyPress "2", 1
KeyPress "1", 1
KeyPress "2", 1
KeyPress "1", 1
KeyPress "2", 1
end if