Do
If DateDiff("s", q1, now) > 1 Then
KeyPress "1", 1
q1 = now
End If
If DateDiff("s", q2, now) >2 Then
TracePrint "2"
q2 = now
End If
If DateDiff("s", q3, now) >10 Then
TracePrint "3"
q3 = now
End If
If GetPixelColor(10, 5) = "0000ff" Then
KeyPress "4", 1
End If
Loop
按照你的要求代码 复制黏贴可用