按键精灵条件判断循环求助!
发布网友
发布时间:2022-05-11 05:14
我来回答
共2个回答
热心网友
时间:2024-02-09 16:52
do
Do
FindPic 0, 0, 1024, 768, "Attachment:\确定1.bmp", 0.9, intX, intY
If intX > 0 And intY > 0 Then
MoveTo intX + 20, intY + 20
Delay 100
LeftClick 1
TracePrint "找到并点击图1"
Exit Do
Else
Delay 100
TracePrint "没找到图1,延时重新找"
End If
Delay 100
Loop
TracePrint "准备找图2"
Do
FindPic 0,0,1024,768,"Attachment:\确定2.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
MoveTo intX + 20, intY + 20
Delay 100
LeftClick 1
Delay 100
TracePrint "找到图2并点击"
Exit Do
Else
Delay 100
TracePrint "没找到图2,延时重新找"
End If
Delay 100
Loop
TracePrint "准备刷新"
Delay 100
KeyPress "F5", 1
Delay 100
loop追问并不能运行!能不能在看看?
热心网友
时间:2024-02-09 16:53
条件判断循环
int n=0
rem xh
if n<100 then
n=n+1
.....这里看需要写代码..
goto xh
end if