我改成数组,还是不对,我郁闷了。 Local $a[3]=[0,0,0],$b
$i = 48
$b=StringFormat('%03d\n',$a[0]&$a[1]&$a[2]+$i)
$i = 48
$searchx = 185
$searchprex = 21
$searchy = 487
$confirmx = 569
$confirmy = 473
Sleep(5000)
Send("!d")
Sleep(10)
Send("http://www.xxx.net/bbs/search.php")
Sleep(10)
Send("{ENTER}")
Sleep(3000)
While $i < 91
MouseMove($searchx, $searchy)
If PixelGetColor($searchx, $searchy) = '0xFFFFCC' Then
Sleep(1000)
MouseClick("left")
Else
Sleep(15000)
If PixelGetColor($searchx, $searchy) = '0xFFFFCC' Then
Sleep(15000)
MouseClick("left")
Else
SoundPlay("C:\WINDOWS\Media\ringin.wav")
MsgBox(0,0,$i)
ExitLoop
EndIf
EndIf
$b=StringFormat('%03d\n',$a[0]&$a[1]&$a[2]+$i)
Send("{ASC $b}")
Sleep(1000)
Send("{ENTER}")
Sleep(5000)
MouseMove($confirmx, $confirmy)
Sleep(1000)
If PixelGetColor($confirmx, $confirmy) = '0xE5E3E3' Then
MouseClick("left")
Sleep(5000)
Else
Sleep(15000)
If PixelGetColor($confirmx, $confirmy) = '0xE5E3E3' Then
MouseClick("left")
Sleep(5000)
Else
SoundPlay("C:\WINDOWS\Media\ringin.wav")
MsgBox(0,"",$i)
ExitLoop
EndIf
EndIf
$i += 1
While $i>=58 and $i<=64
$i = 65
WEnd
WEnd
If $i = 65 Then
SoundPlay("C:\WINDOWS\Media\ringin.wav")
MsgBox(0,"","OVER")
EndIf
|