您好:
我是生手,写的脚本想在整个脚本运行时间循环找图,作为判断定位的标准,但我搞不懂逻辑怎么处理,请指教一下。谢谢。
还有,请问做找图的图片,在色选的时候,是每一个颜色都选一个点吗?还是要选出轮廓来呀。
FindPic L+200, T+450, L + 380, T + 560, "Attachment:\货架.bmp", 0.92, intX, intY
Do While intX <= 0 Or intY<=0
Delay 200
KeyDown "Ctrl", 1
Delay 200
LeftDoubleClick 1
Delay 200
KeyUp "Ctrl", 1
Delay 200
MoveTo L + 530, T + 420
LeftDown 1
Delay 200
MoveTo L + 590, T + 490
Delay 5000
FindPic L+200, T+450, L + 380, T + 560, "Attachment:\货架.bmp", 0.92, intX, intY
Delay 200
Loop
If intX>0 And intY>0 Then
MoveTo intX, intY
GetCursorPos X, Y
TracePrint X
TracePrint Y
End If
Delay 1000
LeftClick 1
Delay 2000
FindPic L + 630, T + 80, L + 730, T + 160, "Attachment:\关闭键.bmp", 0.9, intX, intY
If intX > 0 And intY > 0 Then
MoveTo intX, intY
Delay 1000
LeftClick 1
End If