我有 100 个软件列表。我有这个代码:
doubleClick("1380765362298.png")
wait(0.01)
#mouseDown(Button.LEFT)
#mouseUp(Button.LEFT)
while exists("1380774111845.png",10):
click("1380774111845.png")
wait(0.01)
mouseDown(Button.LEFT)
mouseUp(Button.LEFT)
wait(2)
#except:
#pass
try:
click("1380765740907.png")
wait(3)
waitVanish("1380772439126.png",FOREVER)
except:
pass
try:
click("1380769537610.png")
wait(4)
except:
pass
try:
click("1380772563891.png")
wait(2)
except:
pass
try:
type(Key.DELETE)
wait(2)
except:
pass
try:
click("1380774317204.png")
wait(1)
except:
pass
else:
pass
在这段代码中,我试图让它循环到 10,但它不会工作。它会一直循环,直到所有软件都运行完毕。那么我怎样才能让它循环到 10 只呢?